исправления dashboard

This commit is contained in:
2026-12-04 05:46:58 +03:00
parent 54ccb8efc6
commit af52ead24e
3 changed files with 160 additions and 22 deletions
+7 -1
View File
@@ -75,6 +75,8 @@ class OtelASGIMiddleware:
await self.app(scope, receive, send_wrapper)
finally:
dur_ms = (time.perf_counter() - started) * 1000.0
if status_holder["code"] == 0:
status_holder["code"] = 500
attrs = {
"http.method": method,
"http.target": path,
@@ -133,4 +135,8 @@ async def health_live():
@app.get("/health/ready")
async def health_ready():
return {"status": "ok"}
return {"status": "ok"}
@app.get("/debug/boom")
async def debug_boom():
raise RuntimeError("demo failure for 5xx alerting")