We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
app.include_router
app.mount
1 parent 236b812 commit 0771fa1Copy full SHA for 0771fa1
gen3workflow/app.py
@@ -66,7 +66,7 @@ def get_app(httpx_client=None) -> FastAPI:
66
prometheus_dir=config["PROMETHEUS_MULTIPROC_DIR"],
67
)
68
if app.metrics.enabled:
69
- app.include_router("/metrics", app.metrics.get_asgi_app())
+ app.mount("/metrics", app.metrics.get_asgi_app())
70
71
@app.middleware("http")
72
async def middleware_log_response_and_api_metric(
0 commit comments