We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbb07bf commit d26f0c4Copy full SHA for d26f0c4
code/function/fastapp/utils.py
@@ -116,11 +116,11 @@ def setup_opentelemetry(app: FastAPI):
116
}
117
118
# Create instrumenter
119
- # FastAPIInstrumentor.instrument_app(
120
- # app,
121
- # excluded_urls=f"{settings.API_V1_STR}/health/heartbeat",
122
- # tracer_provider=tracer_provider,
123
- # meter_provider=meter_provider,
124
- # )
+ FastAPIInstrumentor.instrument_app(
+ app,
+ excluded_urls=f"{settings.API_V1_STR}/health/heartbeat",
+ tracer_provider=tracer_provider,
+ meter_provider=meter_provider,
+ )
125
HTTPXClientInstrumentor().instrument()
126
SystemMetricsInstrumentor(config=system_metrics_config).instrument()
0 commit comments