getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

Record response headers on http client spans #9643

Open lforst opened 11 months ago

lforst commented 11 months ago

There are valid use cases where you would want to capture the response headers on an HTTP client span. E.g. when you don't control the backend so you can't instrument it.

Our current implementation doesn't allow for this. We should add functionality to capture HTTP response headers.

mydea commented 11 months ago

We have some code for this already for replay, we may be able to hoist this up somehow!