Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record exceptions as 500 responses #27

Merged
merged 2 commits into from May 10, 2021

Conversation

matino
Copy link
Contributor

@matino matino commented May 6, 2021

This way it will be possible to count the number of 5xx responses with: sum(rate(starlette_responses_total{status_code=~"50."}[1m])) query.

Fixes #21

matino added 2 commits May 6, 2021 11:56
This way it's now clear that the exception handling is done for the response.
This way it will be possible to count the number of 5xx responses with:
sum(rate(starlette_responses_total{status_code=~"50."}[1m]))
@matino
Copy link
Contributor Author

matino commented May 7, 2021

@perdy Can you please review?

@perdy perdy merged commit ae1f813 into perdy:master May 10, 2021
@perdy
Copy link
Owner

perdy commented Aug 31, 2021

🎉 This PR is included in version 0.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@perdy perdy added the released label Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should exception better be consider as well for responses ?
2 participants