Skip to content

Commit

Permalink
noop tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCheema committed Dec 18, 2024
1 parent b02c0a5 commit 0278de7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions exo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0278de7

Please sign in to comment.