Title: event_scrubber doesn't scrub events · Issue #4441 · getsentry/sentry-python · GitHub
Open Graph Title: event_scrubber doesn't scrub events · Issue #4441 · getsentry/sentry-python
X Title: event_scrubber doesn't scrub events · Issue #4441 · getsentry/sentry-python
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.29.1 Steps to Reproduce import sentry_sdk from sentry_sdk.scrubber import EventScrubber, DEFAULT_DENYLIST, DEFAULT_PII_DENYLIST # custom denylist denylist = DEFAULT_DENYLIST + ["my...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.29.1 Steps to Reproduce import sentry_sdk from sentry_sdk.scrubber import EventScrubber, DEFAULT_DENYLIST, DEFAULT_PII_DENYLIST # custom den...
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.29.1 Steps to Reproduce import sentry_sdk from sentry_sdk.scrubber import EventScrubber, DEFAULT_DENYLIST, DEFAULT_PII_DENYLIST # custom den...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/4441
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"event_scrubber doesn't scrub events","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.29.1\n\n### Steps to Reproduce\n\n```python\nimport sentry_sdk\nfrom sentry_sdk.scrubber import EventScrubber, DEFAULT_DENYLIST, DEFAULT_PII_DENYLIST\n\n# custom denylist\ndenylist = DEFAULT_DENYLIST + [\"my_sensitive_var\", \"color\"]\npii_denylist = DEFAULT_PII_DENYLIST + [\"my_private_var\", \"color\"]\n\nsentry_sdk.init(\n dsn=\"MY_DSN\",\n send_default_pii=False,\n event_scrubber=EventScrubber(denylist=denylist, pii_denylist=pii_denylist, recursive=True),\n traces_sample_rate=1.0,\n profile_session_sample_rate=1.0,\n profile_lifecycle=\"trace\",\n)\n```\n\n### Expected Result\n\nWhen visiting the app through the browser, and adding the parameter `?color=red` (ie. in my case `http://127.0.0.1:8000/polls/error/?color=red`), I would expect for it to be scrubbed in my Sentry event.\n\n### Actual Result\n\nThe `color` parameter does not get scrubbed.\n\u003cimg width=\"214\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e4dd14c5-806a-4ff5-89fc-ce50ba0baa50\" />\n\nExample event from my test org [here](https://dragonfruit-us.sentry.io/issues/6655889994/?project=4504490632871936&query=is%3Aunresolved&referrer=issue-stream&stream_index=0).","author":{"url":"https://github.com/InterstellarStella","@type":"Person","name":"InterstellarStella"},"datePublished":"2025-06-04T08:15:38Z","url":"https://github.com/getsentry/sentry-python/issues/4441"}
| 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:5985b130-3ee5-abc8-7d8e-65de82937eec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AA8:215B92:1709DD:1F8671:6B00BD9A |
| html-safe-nonce | 7a170a18c0ab4a97ccde6584faad0772dc8e0bfe7dfa4fc4db3c943375c1381d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUE4OjIxNUI5MjoxNzA5REQ6MUY4NjcxOjZCMDBCRDlBIiwidmlzaXRvcl9pZCI6IjE4MTU5MDkwOTA3NTc0OTIxMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f0485688848dbaa2d71c90fb3c7c6568fe5ef31c95927327045e43e968d0972f |
| hovercard-subject-tag | issue:3116928528 |
| 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-python/4441/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78d8382c21a55aba2e3abcfa37376f1388ce11a60fea61d9b67fbe9b123e6a8b/getsentry/sentry-python/issues/4441 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78d8382c21a55aba2e3abcfa37376f1388ce11a60fea61d9b67fbe9b123e6a8b/getsentry/sentry-python/issues/4441 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 2.29.1 Steps to Reproduce import sentry_sdk from sentry_sdk.scrubber import EventScrubber, DEFAULT_DENYLIST, DEFAULT_PII_DENYLIST # custom den... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | InterstellarStella |
| hostname | github.com |
| expected-hostname | github.com |
| None | 93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| 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 | 1fee81a280ea86312b69448e261b418189bfd5b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width