fix: datadog tracer

This commit is contained in:
Michael 2023-10-27 09:14:05 +02:00 committed by GitHub
parent 8faed97e74
commit 679975beec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 197 additions and 170 deletions

View file

@ -48,7 +48,7 @@ func (c *Config) SetDefaults() {
// Setup sets up the tracer.
func (c *Config) Setup(serviceName string) (opentracing.Tracer, io.Closer, error) {
opts := []datadog.StartOption{
datadog.WithServiceName(serviceName),
datadog.WithService(serviceName),
datadog.WithDebugMode(c.Debug),
datadog.WithPropagator(datadog.NewPropagator(&datadog.PropagatorConfig{
TraceHeader: c.TraceIDHeaderName,