getsentry / getsentry/sentry-javascript

Include request / response headers as attributes on `http.client` spans

Open
#15,761 1 comment 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.