urllib: add support for capturing request and response headers#4051
urllib: add support for capturing request and response headers#4051xrmx merged 7 commits intoopen-telemetry:mainfrom
Conversation
|
This work might belong in another PR, but it looks like there are some additional headers that are added by |
Good catch! To fix that we should do an |
Worth open an issue about that? |
Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com>
b18e103 to
66cb92d
Compare
Added a note to the documentation and filed #4100 |
…telemetry#4051) * urllib: add support for capturing request and response headers * Apply suggestions from code review Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com> * Cleanup type * Fix handling of headers in instrumented Opener.open * Add missing support for new style annotations * Add changelog * Add note about limitation of captured headers --------- Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com>
Description
This PR adds support to capture and sanitize custom client headers in the urllib instrumentation. While at it also fixed the instrumented
Opener.openhandling of headers if added viaOpener.addheaders.Refs #3962
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.