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

Handle capture on redefined http.responseWriters #9440

Merged
merged 6 commits into from Oct 27, 2022

Conversation

rtribotte
Copy link
Member

@rtribotte rtribotte commented Oct 14, 2022

What does this PR do?

This PR fixes incorrect values that could be filled in services metrics when a middleware interferes in the chain and redefines the http.responseWriter.

Motivation

Fixes #9407

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: Mathieu Lonjaret mathieu.lonjaret@gmail.com

Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :feelsgood:

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants