Skip to content

Commit d8ea4e4

Browse files
committed
perf: enhance monitoring
1 parent 6b0f44b commit d8ea4e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
if telemetry.ENABLE_TELEMETRY:
1919
print("WARNING: Running telemetry.", flush=True)
20+
telemetry.setting_app_name(app_name)
2021
telemetry.setting_otlp(app, app_name=app_name, endpoint=OTLP_GRPC_ENDPOINT)
2122
app.add_middleware(telemetry.PrometheusMiddleware, app_name=app_name)
2223
app.add_route("/metrics", telemetry.metrics)

0 commit comments

Comments
 (0)