Title: Allow enabling infer_ip without enabling all default PII · Issue #19072 · getsentry/sentry-javascript · GitHub
Open Graph Title: Allow enabling infer_ip without enabling all default PII · Issue #19072 · getsentry/sentry-javascript
X Title: Allow enabling infer_ip without enabling all default PII · Issue #19072 · getsentry/sentry-javascript
Description: Problem Statement We really don't want to collect (for example) session cookie Set-Cookie headers, so keeping includeDefaultPii disabled gives us a lot more safety that no accidents will occur. However, IP is frequently very helpful for ...
Open Graph Description: Problem Statement We really don't want to collect (for example) session cookie Set-Cookie headers, so keeping includeDefaultPii disabled gives us a lot more safety that no accidents will occur. How...
X Description: Problem Statement We really don't want to collect (for example) session cookie Set-Cookie headers, so keeping includeDefaultPii disabled gives us a lot more safety that no accidents will occur....
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/19072
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow enabling infer_ip without enabling all default PII","articleBody":"### Problem Statement\n\nWe really don't want to collect (for example) session cookie `Set-Cookie` headers, so keeping includeDefaultPii disabled gives us a lot more safety that no accidents will occur. However, IP is frequently very helpful for debugging issues. Since the changes in 10.4.0, there is no way to have `includeDefaultPii: false` but still collect the inferred IP in Relay.\n\n### Solution Brainstorm\n\nYou can pass `_metadata: { sdk: { settings: { infer_ip: \"auto\" } } }` to `Sentry.init()` to get access force enable infer_ip, however this is other side-effects like preventing the sdk name and version being sent through to the sentry server.\n\nIt feels like the there could be a way to specify you'd like to enable this specific feature somehow when calling Sentry.init, which is merged into the default _metadata. Alternatively, when the user-supplied _metadata.sdk.settings block is merged into BrowserClient, it could handle this case by still inserting other values required for full functioning of the SDK.\n\n### Additional Context\n\n_No response_\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/bagedevimo","@type":"Person","name":"bagedevimo"},"datePublished":"2026-01-29T04:12:41Z","url":"https://github.com/getsentry/sentry-javascript/issues/19072"}
| 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:68c25a8e-adc2-f1e6-1cc0-2f67fbf22544 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B27A:27B4C6:94D5BA:C8B832:6B04DB03 |
| html-safe-nonce | bdc5ab4e6b48c6296538da06f11fd4a4c17cf46ae52bd0727668c3274217b92a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjdBOjI3QjRDNjo5NEQ1QkE6QzhCODMyOjZCMDREQjAzIiwidmlzaXRvcl9pZCI6IjYzMTkzNzI5MDI2NzI0MjM2ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bf580f416e9ddc01880104822ce884a7cb7728303b7d27c3db155af2c9fc78d9 |
| hovercard-subject-tag | issue:3868710103 |
| 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/19072/issue_layout |
| twitter:image | https://opengraph.githubassets.com/403d83683b8cbd27aa2eb318f4d4ab2e4cc989de84ff5d5479a07edea61af049/getsentry/sentry-javascript/issues/19072 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/403d83683b8cbd27aa2eb318f4d4ab2e4cc989de84ff5d5479a07edea61af049/getsentry/sentry-javascript/issues/19072 |
| og:image:alt | Problem Statement We really don't want to collect (for example) session cookie Set-Cookie headers, so keeping includeDefaultPii disabled gives us a lot more safety that no accidents will occur. How... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bagedevimo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965 |
| 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 | 6c35540a0a2991ee20bd053ba2601cce33f72cb1 |
| 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