starlette_exporter icon indicating copy to clipboard operation
starlette_exporter copied to clipboard

Feature request: count exceptions

Open v1lev opened this issue 1 year ago • 1 comments

Hello! Thank you for your work!

I'm currenlty migrating from starlette-prometheus due to the bug with BaseHTTPMiddleware. It has one very useful metric that counters all the exceptions per route: https://github.com/perdy/starlette-prometheus/blob/master/starlette_prometheus/middleware.py#L56

Please consider adding something like that in the future.

v1lev avatar Apr 17 '23 08:04 v1lev

Isn't that the same as existing metric? starlette_requests_total{method="...",path="...",status_code="500"} 1.0

dolfinus avatar Jan 06 '24 07:01 dolfinus