We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7296ee1 commit 8d00a75Copy full SHA for 8d00a75
cads_processing_api_service/middlewares.py
@@ -52,6 +52,6 @@ class ProcessingPrometheusMiddleware(starlette_exporter.PrometheusMiddleware):
52
def _get_router_path(scope: starlette.types.Scope) -> str | None:
53
path = scope.get("path", "")
54
if path.startswith("/jobs/") and path != "/jobs/":
55
- return "/jobs/job_id"
+ return "/".join(scope.get("root_path"), "jobs/{job_id}")
56
else:
57
return None
0 commit comments