getsentry / getsentry/sentry-javascript
Include request / response headers as attributes on `http.client` spans
Open
Browser
Improvement
Spans
- Dominant language
- TypeScript
- Stars
- 8.7k
- Forks
- 1.8k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 515
Description
### Problem Statement
It would be valuable for answering certain types of performance questions to be able to see request and response headers on an `http.client` call.
As an example, `age` and `cf-cache-status` can help you determine whether a request was served from cache.
### Solution Brainstorm
Allow list certain headers, such as `age`, that we're confident are unlikely to include PII. Include these headers as attributes.
Contributor guide
Assessment
This issue has not been assessed yet.