Skip to content

Commit

Permalink
fix opentelemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 10, 2024
1 parent 9543e2f commit f738752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def configure_otel(app):
trace.get_tracer_provider().add_span_processor(
BatchSpanProcessor(jaeger_exporter)
)
# tracer = trace.get_tracer(__name__)
FastAPIInstrumentor.instrument_app(app, tracer_provider=trace, excluded_urls="docs,openapi.json")
trace.get_tracer(__name__)
FastAPIInstrumentor.instrument_app(app, excluded_urls="docs,openapi.json")
HTTPXClientInstrumentor().instrument()

# Configure open telemetry if enabled
Expand Down

0 comments on commit f738752

Please sign in to comment.