urllib3: Fix headers when used in kwargs#4143
Closed
kjprice wants to merge 4 commits intoopen-telemetry:mainfrom
Closed
urllib3: Fix headers when used in kwargs#4143kjprice wants to merge 4 commits intoopen-telemetry:mainfrom
kjprice wants to merge 4 commits intoopen-telemetry:mainfrom
Conversation
Author
I have signed the agreement now. |
herin049
reviewed
Jan 26, 2026
| return method | ||
|
|
||
|
|
||
| def _normalize_headers_to_kwargs( |
Contributor
There was a problem hiding this comment.
I'd prefer that we use a more robust method to accomplish this. I'd suggest we use a combination of inspect.signature and signature.bind to bind the arguments.
Contributor
|
We also need to add tests for this as well. You mentioned you don't have a large amount of time to contribute so I've implement the changes using |
Author
|
Yay! Thanks @herin049! |
Contributor
|
hey, it might be worth adding a regression test that explicitly passes headers positionally with instrumentation enabled, just to lock this behavior in and avoid regressions? Otherwise this approach looks solid to me |
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #4115
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please see this discussion on how to test.
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.