-
Notifications
You must be signed in to change notification settings - Fork 843
urllib: add support for capturing request and response headers #4051
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
base: main
Are you sure you want to change the base?
Conversation
...on/opentelemetry-instrumentation-urllib/src/opentelemetry/instrumentation/urllib/__init__.py
Outdated
Show resolved
Hide resolved
...on/opentelemetry-instrumentation-urllib/src/opentelemetry/instrumentation/urllib/__init__.py
Outdated
Show resolved
Hide resolved
...on/opentelemetry-instrumentation-urllib/src/opentelemetry/instrumentation/urllib/__init__.py
Outdated
Show resolved
Hide resolved
...on/opentelemetry-instrumentation-urllib/src/opentelemetry/instrumentation/urllib/__init__.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com>
|
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 |
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.