mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 15:07:40 +00:00
fix: remove duplicate otel span processors (#8104)
This commit is contained in:
parent
931a6c7cce
commit
1d13d41139
@ -23,11 +23,10 @@ func NewTracer(sampler sdk_trace.Sampler, exporter sdk_trace.SpanExporter) (*Tra
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
spanProcessor := sdk_trace.NewBatchSpanProcessor(exporter)
|
|
||||||
tp := sdk_trace.NewTracerProvider(
|
tp := sdk_trace.NewTracerProvider(
|
||||||
sdk_trace.WithSampler(sampler),
|
sdk_trace.WithSampler(sampler),
|
||||||
sdk_trace.WithBatcher(exporter),
|
sdk_trace.WithBatcher(exporter),
|
||||||
sdk_trace.WithSpanProcessor(spanProcessor),
|
|
||||||
sdk_trace.WithResource(resource),
|
sdk_trace.WithResource(resource),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user