Skip to content

Commit 0771fa1

Browse files
committed
Update app.include_router to app.mount for metrics
1 parent 236b812 commit 0771fa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen3workflow/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def get_app(httpx_client=None) -> FastAPI:
6666
prometheus_dir=config["PROMETHEUS_MULTIPROC_DIR"],
6767
)
6868
if app.metrics.enabled:
69-
app.include_router("/metrics", app.metrics.get_asgi_app())
69+
app.mount("/metrics", app.metrics.get_asgi_app())
7070

7171
@app.middleware("http")
7272
async def middleware_log_response_and_api_metric(

0 commit comments

Comments
 (0)