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 7e100e4 commit 43092e2Copy full SHA for 43092e2
packages/service-library/src/servicelib/fastapi/monitoring.py
@@ -54,7 +54,7 @@ async def dispatch(
54
status_code = response.status_code
55
except Exception: # pylint: disable=broad-except
56
# NOTE: The prometheus metrics middleware should be "outside" exception handling
57
- # middleware so at this point starlette should turn an exception into a 500
+ # middleware. See https://fastapi.tiangolo.com/advanced/middleware/#adding-asgi-middlewares
58
status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
59
raise
60
finally:
0 commit comments