The address to which the Admin HTTP server is bound.
The address to which the Admin HTTP server is bound.
This method allows for further configuration of the http server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,
This method allows for further configuration of the http server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,
override def configureAdminHttpServer(server: Http.Server): Http.Server = server.withMonitor(myMonitor)
- the com.twitter.finagle.Http.Server to configure.
a configured Http.Server.
Name used for registration in the com.twitter.util.registry.Library
Name used for registration in the com.twitter.util.registry.Library
library name to register in the Library registry.
Exposed for testing
Exposed for testing
By default this returns the global LoadedStatsReceiver instance.
By default this returns the global LoadedStatsReceiver instance. Take note when overriding this method to return the *same instance* on multiple calls otherwise you will get surprising stating behavior.
a StatsReceiver instance.
com.twitter.finagle.stats.LoadedStatsReceiver
Twitter Server defines a template from which servers at Twitter are built. It provides common application components such as an administrative HTTP server, tracing, stats, etc. These features are wired in correctly for use in production at Twitter.
For DI (Dependency Injection) Twitter Server uses self-typed Scala traits that might be mixed in the
TwitterServer
trait. The common practice is to define self-typed traits against the App trait as shown below.Note: the Slf4jBridge trait MUST be defined first to properly bridge legacy logging APIs.