Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thrift: Add Thrift service class to registry
Problem We'd like to add the Thrift interface being implemented to the server's registry. This will appear under the key: `library/finatra/thrift/service_class`. Additionally, we want to set the Finagle `ServiceClass` Stack param in the case where it isn't automatically set by calling `server.serveIface`. Solution Update the routers to register the `service_class` entry into the global registry and update where we serve with `server.serve` to set the `ServiceClass` Stack param to opt these services into any available Finagle instrumentation. Result Ability to inspect the class name of the Thrift service the server is implementing. JIRA Issues: CSL-10989 Differential Revision: https://phabricator.twitter.biz/D687117
- Loading branch information
Showing
4 changed files
with
52 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters