From 0278de7b7eaae681a3eca737a5c66a4c864e4520 Mon Sep 17 00:00:00 2001 From: Alex Cheema Date: Wed, 18 Dec 2024 23:32:25 +0000 Subject: [PATCH] noop tracing --- exo/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/exo/main.py b/exo/main.py index e30cc98ed..7e11a7a22 100644 --- a/exo/main.py +++ b/exo/main.py @@ -369,9 +369,8 @@ def check_jaeger_connection(): tracer_provider.add_span_processor(span_processor) else: print("Warning: Could not connect to Jaeger, tracing will be disabled") - # Use a no-op span processor if Jaeger is not available - from opentelemetry.sdk.trace.export import ConsoleSpanExporter - tracer_provider.add_span_processor(SimpleSpanProcessor(ConsoleSpanExporter())) + # Use a no-op tracer provider instead + tracer_provider = trace.NoOpTracerProvider() # Set the tracer provider trace.set_tracer_provider(tracer_provider)