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

Favor passed HTTP response over exception for error metrics #928

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

n0tl3ss
Copy link
Member

@n0tl3ss n0tl3ss commented Jan 27, 2025

It considers first if http response exists otherwise it tries to extract it from the exception. Fixes #925.

@n0tl3ss n0tl3ss changed the title Fixes #925. It considers first if http response exists and gets statu… Fixes #925. Jan 27, 2025
@n0tl3ss n0tl3ss requested a review from graemerocher January 27, 2025 16:41
@graemerocher
Copy link
Contributor

is it possible to add a test?

@graemerocher graemerocher changed the title Fixes #925. Favor passed HTTP response over exception for error metrics Jan 28, 2025
@graemerocher graemerocher merged commit 80b251f into 5.10.x Jan 28, 2025
14 checks passed
@graemerocher graemerocher deleted the bugfix/925 branch January 28, 2025 12:39
@graemerocher graemerocher added the type: bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

http.server.requests metric records wrong status when client throws exception
2 participants