Package metrics provides command line flags for configuring the metrics backend.
AddFlags adds flags for Builder.
Builder provides command line options to configure metrics backend used by Jaeger executables.
CreateMetricsFactory creates a metrics factory based on the configured type of the backend. If the metrics backend supports HTTP endpoint for scraping, it is stored in the builder and can be later added by RegisterHandler function.
Handler returns an http.Handler for the metrics endpoint.
InitFromViper initializes Builder with properties retrieved from Viper.