Title: Feature: Configuration for capturing "Console" and "Network" data · Issue #7463 · getsentry/sentry-javascript · GitHub
Open Graph Title: Feature: Configuration for capturing "Console" and "Network" data · Issue #7463 · getsentry/sentry-javascript
X Title: Feature: Configuration for capturing "Console" and "Network" data · Issue #7463 · getsentry/sentry-javascript
Description: Problem Some users want to be able to control what gets captured in the Console and Network tabs (for example, privacy reasons). We should add configuration options to replay to: enable/disable capturing of Console messages enable/disabl...
Open Graph Description: Problem Some users want to be able to control what gets captured in the Console and Network tabs (for example, privacy reasons). We should add configuration options to replay to: enable/disable cap...
X Description: Problem Some users want to be able to control what gets captured in the Console and Network tabs (for example, privacy reasons). We should add configuration options to replay to: enable/disable cap...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7463
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature: Configuration for capturing \"Console\" and \"Network\" data","articleBody":"## Problem\n\nSome users want to be able to control what gets captured in the Console and Network tabs (for example, privacy reasons).\n\n\nWe should add configuration options to replay to:\n\n* enable/disable capturing of Console messages\n* enable/disable capturing of Network data\n* capture specific console log levels (log, info, debug, warn, error)\n* capture specific network types (css, script, img, link, fetch, xhr, other)\n\n\n## Proposal\n\nI'm not familiar with other parts of the SDK but this API should be consistent with existing patterns if possible:\n\n\n### Single key\n\n```javascript\nnew Replay({\n captureConsole: true, // Default, capture everything\n captureConsole: false, // Do not capture any console logs\n captureConsole: ['error'], // Capture only `console.error()`\n});\n```\n\n### Multiple keys\n\n```javascript\nnew Replay({\n disableCaptureConsole: false, // Default, capture everything\n disableCaptureConsole: true, // Do not capture any console logs\n captureConsole: ['error'], // Capture only `console.error()`\n});\n```","author":{"url":"https://github.com/billyvg","@type":"Person","name":"billyvg"},"datePublished":"2023-03-14T18:08:01Z","url":"https://github.com/getsentry/sentry-javascript/issues/7463"}
| 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:c9d9064d-19d7-4b4e-f67c-e25fb7bf3674 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4C4:1173F1:4A0349:626EC9:6B04BE62 |
| html-safe-nonce | d3c7bc38ed3abd583ae9b555fdc6f79eff98f69fb4d874079039bd3f5ea3429b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEM0OjExNzNGMTo0QTAzNDk6NjI2RUM5OjZCMDRCRTYyIiwidmlzaXRvcl9pZCI6IjI1MTg3MTU0NjcyMzgyNjAzMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf57c2689eb2e292c0ca270c9acf6c934d2e44b9b2a2ddcd4ceb35e7d6b7d209 |
| hovercard-subject-tag | issue:1624047624 |
| 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/7463/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f4f847cfb3455308e72bd951d8d8a886cfd114b466a561b9e0ca07fe684dd48/getsentry/sentry-javascript/issues/7463 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f4f847cfb3455308e72bd951d8d8a886cfd114b466a561b9e0ca07fe684dd48/getsentry/sentry-javascript/issues/7463 |
| og:image:alt | Problem Some users want to be able to control what gets captured in the Console and Network tabs (for example, privacy reasons). We should add configuration options to replay to: enable/disable cap... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | billyvg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| 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