From a171146a4f70744060df611118a3740fd7866887 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Mon, 14 Aug 2023 16:28:15 -0400 Subject: [PATCH] [fix] Disable tracing of OTLP Receiver Signed-off-by: Yuri Shkuro --- cmd/collector/app/handler/otlp_receiver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/collector/app/handler/otlp_receiver.go b/cmd/collector/app/handler/otlp_receiver.go index 7801be4d6ca..43d45fc12d8 100644 --- a/cmd/collector/app/handler/otlp_receiver.go +++ b/cmd/collector/app/handler/otlp_receiver.go @@ -28,8 +28,8 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/otlpreceiver" - "go.opentelemetry.io/otel" noopmetric "go.opentelemetry.io/otel/metric/noop" + "go.opentelemetry.io/otel/trace" "go.uber.org/zap" "github.com/jaegertracing/jaeger/cmd/collector/app/flags" @@ -75,7 +75,7 @@ func startOTLPReceiver( otlpReceiverSettings := receiver.CreateSettings{ TelemetrySettings: component.TelemetrySettings{ Logger: logger, - TracerProvider: otel.GetTracerProvider(), // TODO we may always want no-op here, not the global default + TracerProvider: trace.NewNoopTracerProvider(), MeterProvider: noopmetric.NewMeterProvider(), // TODO wire this with jaegerlib metrics? }, }