Title: React sentry events contains user's IP address by default · Issue #17351 · getsentry/sentry-javascript · GitHub
Open Graph Title: React sentry events contains user's IP address by default · Issue #17351 · getsentry/sentry-javascript
X Title: React sentry events contains user's IP address by default · Issue #17351 · getsentry/sentry-javascript
Description: Environment SaaS (https://sentry.io/) Steps to Reproduce Sentry initialized like this: // sentry.ts import * as Sentry from "@sentry/react"; if (import.meta.env.VITE_SENTRY_DSN) { console.log("sentry init"); Sentry.init({ dsn: import.met...
Open Graph Description: Environment SaaS (https://sentry.io/) Steps to Reproduce Sentry initialized like this: // sentry.ts import * as Sentry from "@sentry/react"; if (import.meta.env.VITE_SENTRY_DSN) { console.log("sent...
X Description: Environment SaaS (https://sentry.io/) Steps to Reproduce Sentry initialized like this: // sentry.ts import * as Sentry from "@sentry/react"; if (import.meta.env.VITE_SENTRY_DSN) { console...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17351
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"React sentry events contains user's IP address by default","articleBody":"### Environment\n\nSaaS (https://sentry.io/)\n\n### Steps to Reproduce\n\n1. Sentry initialized like this:\n```\n// sentry.ts\nimport * as Sentry from \"@sentry/react\";\n\nif (import.meta.env.VITE_SENTRY_DSN) {\n\tconsole.log(\"sentry init\");\n\tSentry.init({\n\t\tdsn: import.meta.env.VITE_SENTRY_DSN,\n\t\tenvironment: import.meta.env.VITE_SENTRY_ENV || \"unknown\",\n\t\trelease: import.meta.env.VITE_SENTRY_RELEASE,\n\t\tintegrations: [],\n\t\tnormalizeDepth: 10,\n\t});\n}\n\nexport { Sentry };\n```\n2. And used like this:\n```\n// main.ts\n...\nimport { Sentry } from \"./sentry\";\n\nReactDOM.createRoot(document.getElementById(\"root\")!, {\n\tonCaughtError: Sentry.reactErrorHandler(),\n\tonRecoverableError: Sentry.reactErrorHandler(),\n\tonUncaughtError: Sentry.reactErrorHandler(),\n}).render(\n\t\u003cReact.StrictMode>\n\t\t\u003cErrorBoundary FallbackComponent={ErrorContainer}>\n\t\t\t...\n\t\t\u003c/ErrorBoundary>\n\t\u003c/React.StrictMode>,\n);\n```\n\n### Expected Result\n\nNo user's IP address stored by default as mentioned in the docs: https://docs.sentry.io/platforms/javascript/guides/react/data-management/data-collected/\n\n\u003cimg width=\"756\" height=\"311\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/187a130a-e27b-431c-9cc1-9a0d38fa9ef9\" />\n\n### Actual Result\n\nIn event's tags is this:\n\n\u003cimg width=\"615\" height=\"275\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/cd36845f-6bd6-4d94-a320-a45a88014992\" />\n\n### Product Area\n\nIssues\n\n### Link\n\n_No response_\n\n### DSN\n\n_No response_\n\n### Version\n\n_No response_","author":{"url":"https://github.com/uiii","@type":"Person","name":"uiii"},"datePublished":"2025-08-07T12:51:58Z","url":"https://github.com/getsentry/sentry-javascript/issues/17351"}
| 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:5333b954-29b2-6ec3-362e-f903b15aff81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9E4:2EA937:74725B:A014A1:6B05AB90 |
| html-safe-nonce | 7e71efe9671c91a914ceb2856da15e4cf50db00e32991a5a530b790ee97c2e9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUU0OjJFQTkzNzo3NDcyNUI6QTAxNEExOjZCMDVBQjkwIiwidmlzaXRvcl9pZCI6IjY1MDM0Mzg4NTg2Mjg0NzU3OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 14e7fdb07bcd7045efaea25b64ef820420e18c27704c71fe56e8831c15ae4f37 |
| hovercard-subject-tag | issue:3301005637 |
| 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/17351/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0c876e8297e24ff2bda352d859b493b04d58a8512fa037736f5d9984855b7fd/getsentry/sentry-javascript/issues/17351 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0c876e8297e24ff2bda352d859b493b04d58a8512fa037736f5d9984855b7fd/getsentry/sentry-javascript/issues/17351 |
| og:image:alt | Environment SaaS (https://sentry.io/) Steps to Reproduce Sentry initialized like this: // sentry.ts import * as Sentry from "@sentry/react"; if (import.meta.env.VITE_SENTRY_DSN) { console.log("sent... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | uiii |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0b0a75b576b64dfa32421a785f31f49ed1e3a5d21b783307a7fd78864bf2e1d |
| 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 | 6d5f39f9528ff412d5d29191dbe92c097ad1b33e |
| 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