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, info.Component, }, Constructor: func(container container.Container) error { return container.Provides( NewConfig, NewReConfigurationWithConfigurator, func(reConfiguration *ReConfiguration) trace.Tracer { return reConfiguration }, ) }, 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: func(c container.Container) error { tracer, err := container.Get[*ReConfiguration](c) if err != nil { return err } reConfiguration, err := container.Get[configurator.ReConfiguration](c) if err != nil { return err } informer, err := container.Get[logger.Informer](c) if err != nil { return err } reConfiguration.Registration(tracer) informer.Info("tracer: registration in the reConfigurator") info, err := container.Get[info.Info](c) if err != nil { return err } config, err := container.Get[*Config](c) if err != nil { return err } info.Registration("tracer", config) return nil }, }
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 ¶
type ReConfiguration struct {
// contains filtered or unexported fields
}
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.