lightstep / lightstep-tracer-javascript

Lightstep distributed tracing library for Node.js and the browser
https://lightstep.com
MIT License
77 stars 66 forks source link

Fix fetch instrumentation #202

Closed ODEit closed 4 years ago

ODEit commented 4 years ago

This pr is meant to fix the fetch shim. The instrumentation currently doesn't use passed in Response objects well. It would overwrite the headers in the response object because fetch would see the option headers passed in through the headers carrier, and it would overwrite whatever may have been in the Response.headers property

ODEit commented 4 years ago

Would you folks want me to send up the new build btw?