Title: Capture request/response headers for outgoing requests in Replay · Issue #7495 · getsentry/sentry-javascript · GitHub
Open Graph Title: Capture request/response headers for outgoing requests in Replay · Issue #7495 · getsentry/sentry-javascript
X Title: Capture request/response headers for outgoing requests in Replay · Issue #7495 · getsentry/sentry-javascript
Description: Similar to #7103, we may also want to capture the headers sent with requests. Questions: This should be PII-stripped automatically server side, I assume cc @cmanallen If we provide a POJO of the headers, will each header be stripped sepa...
Open Graph Description: Similar to #7103, we may also want to capture the headers sent with requests. Questions: This should be PII-stripped automatically server side, I assume cc @cmanallen If we provide a POJO of the he...
X Description: Similar to #7103, we may also want to capture the headers sent with requests. Questions: This should be PII-stripped automatically server side, I assume cc @cmanallen If we provide a POJO of the he...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7495
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Capture request/response headers for outgoing requests in Replay","articleBody":"Similar to https://github.com/getsentry/sentry-javascript/issues/7103, we may also want to capture the headers sent with requests.\r\n\r\n## Questions:\r\n\r\n* This should be PII-stripped automatically server side, I assume cc @cmanallen \r\n * If we provide a POJO of the headers, will each header be stripped separately?\r\n* Should we define a white list of headers we want to capture, or just all headers?\r\n* Should we capture headers for request AND response, or just for responses? (Note: For XHR, request headers are doable but a bit tricky)\r\n* A lot of the headers can be pretty static for each outgoing request, so there may be little value in capturing all of them.\r\n\r\n## Proposed solution\r\n\r\nI propose to define a include-list of headers to capture, and allow users to configure this if they want to capture something specific:\r\n\r\n```js\r\nnew Replay({\r\n networkBreadcrumbs: {\r\n headers: ['My-Custom-Header']\r\n }\r\n}\r\n```\r\n\r\nThe list could look like:\r\n\r\n* `Content-Length`\r\n* `Content-Type`\r\n* `Accept`\r\n\r\nAWS specific headers:\r\n\r\n* `X-Amzn-Trace-Id`\r\n\r\n+ More to add ??\r\n\r\nExample breadcrumb:\r\n\r\n```js\r\n {\r\n data: {\r\n url: 'my-url.com',\r\n method: 'GET',\r\n response: {\r\n headers: {\r\n 'Accept': 'application'json',\r\n 'Authentication': '[redacted]'\r\n }\r\n }\r\n}\r\n```\r\n\r\n","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-03-17T07:31:32Z","url":"https://github.com/getsentry/sentry-javascript/issues/7495"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5b90c7e8-dcf9-759e-ee56-e4b6f82491ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8086:194050:52FA83:6F0769:6B04A3B2 |
| html-safe-nonce | 45cc2c62eadf791ce2b4181a35fd2f7ad9c7f56801615a590474ab81c6d99530 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDg2OjE5NDA1MDo1MkZBODM6NkYwNzY5OjZCMDRBM0IyIiwidmlzaXRvcl9pZCI6IjQyODYzODI2MDczNTg1MzQ1NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4631b596c01ac51536e83d41e4e1a5a0415721ed482bb41af44a3453b8601cd3 |
| hovercard-subject-tag | issue:1628838199 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/7495/issue_layout |
| twitter:image | https://opengraph.githubassets.com/841e388423f71d234e5631bba1aee9853d63bbed5afe1f5bbeebac6b49a417d2/getsentry/sentry-javascript/issues/7495 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/841e388423f71d234e5631bba1aee9853d63bbed5afe1f5bbeebac6b49a417d2/getsentry/sentry-javascript/issues/7495 |
| og:image:alt | Similar to #7103, we may also want to capture the headers sent with requests. Questions: This should be PII-stripped automatically server side, I assume cc @cmanallen If we provide a POJO of the he... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width