Spaces:
Sleeping
Sleeping
github-actions[bot] commited on
Commit ·
b0ec2bd
1
Parent(s): 2951010
Automated deployment from GitHub Actions: 435b14fdc3096553a4ee0fb75c2e2784102943a5
Browse files- src/main.py +6 -5
src/main.py
CHANGED
|
@@ -103,11 +103,12 @@ def create_app() -> FastAPI:
|
|
| 103 |
app.include_router(admin.router, prefix="/api/v1/admin", tags=["admin"])
|
| 104 |
|
| 105 |
# ── Prometheus metrics (optional) ────────────────────────────
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
|
|
|
| 111 |
|
| 112 |
# ── OpenTelemetry (optional) ─────────────────────────────────
|
| 113 |
if settings.OTEL_ENABLED and FastAPIInstrumentor is not None:
|
|
|
|
| 103 |
app.include_router(admin.router, prefix="/api/v1/admin", tags=["admin"])
|
| 104 |
|
| 105 |
# ── Prometheus metrics (optional) ────────────────────────────
|
| 106 |
+
# Disabled for HF Spaces deployment due to middleware crash on _IncludedRouter
|
| 107 |
+
# if Instrumentator is not None:
|
| 108 |
+
# Instrumentator(
|
| 109 |
+
# should_group_status_codes=True,
|
| 110 |
+
# should_ignore_untemplated=True,
|
| 111 |
+
# ).instrument(app).expose(app, endpoint="/metrics")
|
| 112 |
|
| 113 |
# ── OpenTelemetry (optional) ─────────────────────────────────
|
| 114 |
if settings.OTEL_ENABLED and FastAPIInstrumentor is not None:
|