Documentation ¶
Index ¶
Constants ¶
View Source
const ( JaegerCollectorDSNFieldName = "trace.jaeger.dsn" JaegerHostFieldName = "trace.jaeger.agent.host" JaegerPortFieldName = "trace.jaeger.agent.port" )
Variables ¶
View Source
var Component = &app.Component{ Dependencies: app.Components{ logger.Component, configurator.Component, reConfiguration.Component, info.Component, }, Constructor: app.Constructor(func(container container.Container) error { return container.Provides( NewConfig, NewReConfigurationWithConfigurator, func(reConfiguration *ReConfiguration) trace.Tracer { return reConfiguration }, ) }), BindFlags: app.BindFlags(func(flagSet *pflag.FlagSet, container container.Container) error { return container.Invoke(func(config *Config) { flagSet.StringVar(&config.JaegerCollectorDSN, JaegerCollectorDSNFieldName, "", "dsn direct connection to Jaeger manifold") flagSet.StringVar(&config.JaegerAgentHost, JaegerHostFieldName, "", "host to connect to Jaeger agent") flagSet.Uint16Var(&config.JaegerAgentPort, JaegerPortFieldName, 0, "port to connect to Jaeger agent") }) }), Run: app.Run(func(container container.Container) error { return container.Invoke(func( tracer *ReConfiguration, reConfiguration reConfiguration.ReConfiguration, informer logger.Informer, info info.Info, config *Config, ) { reConfiguration.Registration(tracer) informer.Info("tracer: registration in the reConfigurator") info.Registration("tracer", config) }) }), }
Functions ¶
func NewWithConfigurator ¶
func NewWithConfigurator(configurator configurator.Configurator, config *Config, appConfig *app.Config, informer logger.Informer) (trace.Tracer, error)
Types ¶
type Config ¶
func Configuration ¶
func Configuration(config *Config, configurator configurator.Configurator) *Config
type ReConfiguration ¶
func NewReConfiguration ¶
func NewReConfigurationWithConfigurator ¶
func NewReConfigurationWithConfigurator(configurator configurator.Configurator, config *Config, appConfig *app.Config, informer logger.Informer) (*ReConfiguration, error)
func (*ReConfiguration) ReConfiguration ¶
func (reConfiguration *ReConfiguration) ReConfiguration(configurator configurator.Configurator) error
Click to show internal directories.
Click to hide internal directories.