-
Notifications
You must be signed in to change notification settings - Fork 825
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
fix(instrumentation-fetch): compatibility with Map inputs for request headers with fetch #4348
Conversation
…uts for request headers with fetch
31e6b9b
to
1c8d8f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rdeavila94, thank you for your contribution.
Unfortunately we cannot merge the PR unless the Contributor License Agreement is signed (see here #4348 (comment)) - please ensure that it is signed so that we can proceed with the review process, thanks! 🙂
Co-authored-by: Marc Pichler <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4348 +/- ##
=======================================
Coverage 92.22% 92.23%
=======================================
Files 336 336
Lines 9522 9525 +3
Branches 2018 2020 +2
=======================================
+ Hits 8782 8785 +3
Misses 740 740
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
experimental/packages/opentelemetry-instrumentation-fetch/test/fetch.test.ts
Outdated
Show resolved
Hide resolved
d300b82
to
6ebca8e
Compare
… headers with fetch (open-telemetry#4348) * fix(@opentelemetry-instrumentation-fetch): compatibility with Map inputs for request headers with fetch * Update experimental/CHANGELOG.md Co-authored-by: Marc Pichler <[email protected]> * adding description for ts-ignore * fix(changlog): move entry to unreleased * fix: add lint ignore --------- Co-authored-by: Marc Pichler <[email protected]>
…uts for request headers with fetch
Which problem is this PR solving?
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 # (issue)
#4347 (comment)
Short description of the changes
_addHeaders
is not handling a type of Map, so it is resorting to extracting the keys as if the headers are an object literal, which it isn't.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
Checklist: