"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/tracing/elastic/elastic.go" between
traefik-v2.3.2.src.tar.gz and traefik-v2.3.3.src.tar.gz

About: Traefik is a cloud native edge router, a reverse proxy and load balancer for HTTP and TCP-based applications.

elastic.go  (traefik-v2.3.2.src):elastic.go  (traefik-v2.3.3.src)
skipping to change at line 29 skipping to change at line 29
// The APM lib uses the init() function to create a default tracer. // The APM lib uses the init() function to create a default tracer.
// So this default tracer must be disabled. // So this default tracer must be disabled.
// https://github.com/elastic/apm-agent-go/blob/8dd383d0d21776faad8841fe1 10f35633d199a03/tracer.go#L61-L65 // https://github.com/elastic/apm-agent-go/blob/8dd383d0d21776faad8841fe1 10f35633d199a03/tracer.go#L61-L65
apm.DefaultTracer.Close() apm.DefaultTracer.Close()
} }
// Config provides configuration settings for a elastic.co tracer. // Config provides configuration settings for a elastic.co tracer.
type Config struct { type Config struct {
ServerURL string `description:"Set the URL of the Elastic APM se rver." json:"serverURL,omitempty" toml:"serverURL,omitempty" yaml:"serverURL,omi tempty"` ServerURL string `description:"Set the URL of the Elastic APM se rver." json:"serverURL,omitempty" toml:"serverURL,omitempty" yaml:"serverURL,omi tempty"`
SecretToken string `description:"Set the token used to connect to Elastic APM Server." json:"secretToken,omitempty" toml:"secretToken,omitempty" y aml:"secretToken,omitempty"` SecretToken string `description:"Set the token used to connect to Elastic APM Server." json:"secretToken,omitempty" toml:"secretToken,omitempty" y aml:"secretToken,omitempty"`
ServiceEnvironment string `description:"Set the name of the environment T raefik is deployed in, e.g. 'production' or 'staging'." json:"serviceEnvironment ,omitempty" toml:"serviceEnvironment,omitempty" yaml:"serviceEnvironment,omitemp ty"` ServiceEnvironment string `description:"Set the name of the environment T raefik is deployed in, e.g. 'production' or 'staging'." json:"serviceEnvironment ,omitempty" toml:"serviceEnvironment,omitempty" yaml:"serviceEnvironment,omitemp ty" export:"true"`
} }
// Setup sets up the tracer. // Setup sets up the tracer.
func (c *Config) Setup(serviceName string) (opentracing.Tracer, io.Closer, error ) { func (c *Config) Setup(serviceName string) (opentracing.Tracer, io.Closer, error ) {
// Create default transport. // Create default transport.
tr, err := transport.NewHTTPTransport() tr, err := transport.NewHTTPTransport()
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)