fix: remove duplicate otel span processors (#8104)

This commit is contained in:
Joakim Lodén 2024-06-12 12:18:48 +02:00 committed by GitHub
parent 931a6c7cce
commit 1d13d41139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,11 +23,10 @@ func NewTracer(sampler sdk_trace.Sampler, exporter sdk_trace.SpanExporter) (*Tra
if err != nil {
return nil, err
}
spanProcessor := sdk_trace.NewBatchSpanProcessor(exporter)
tp := sdk_trace.NewTracerProvider(
sdk_trace.WithSampler(sampler),
sdk_trace.WithBatcher(exporter),
sdk_trace.WithSpanProcessor(spanProcessor),
sdk_trace.WithResource(resource),
)