We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.9.0
12.7.0
fetch(new Request('/api'))
Fetch request to be sent and auto-instrumented by opentelemetry-plugin-fetch.
opentelemetry-plugin-fetch
An error:
Error: Cannot assign to read only property 'headers' of object '[object Request]
opentelemetry-plugn-fetch is trying to change the headers attribute on a given fetch constructor parameter (see
opentelemetry-plugn-fetch
headers
fetch
opentelemetry-js/packages/opentelemetry-plugin-fetch/src/fetch.ts
Line 112 in 0d939d2
Request
The text was updated successfully, but these errors were encountered:
PTAL at #1274 as a fix
Sorry, something went wrong.
dyladan
Successfully merging a pull request may close this issue.
What version of OpenTelemetry are you using?
0.9.0
What version of Node are you using?
12.7.0
What did you do?
What did you expect to see?
Fetch request to be sent and auto-instrumented by
opentelemetry-plugin-fetch
.What did you see instead?
An error:
Additional context
opentelemetry-plugn-fetch
is trying to change theheaders
attribute on a givenfetch
constructor parameter (seeopentelemetry-js/packages/opentelemetry-plugin-fetch/src/fetch.ts
Line 112 in 0d939d2
It fails, because the
fetch
constructor accepts an object or an instance ofRequest
and theheaders
of aRequest
has no setter.The text was updated successfully, but these errors were encountered: