You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove send_default_pii from integrations & integration tests #7566
Most integrations contain code that branches on send_default_pii vs. data_collection.
Remove the send_default_pii branches. Remove any conditions based on has_data_collection_enabled being True and make the code they guard run unconditionally.
Remove any send_default_pii from the tests. Migrate any tests that currently use send_default_pii and don't have a data_collection counterpart.
When migrating tests to data_collection , always add an explicit data_collection: {} to all sentry_inits that don't have any data_collection config.
The reason is that if no data_collection is provided, the sdk falls back to backfilling a data_collection config based on send_default_pii=False. This is different from the default data_collection config. If you specify data_collection: {}, it falls back to the default data_collection config instead.
We can then bulk-remove the empty data_collections once we make data_collection the default. We can't do that yet because it breaks almost all tests, so we need to do this compat step in between to keep the CI green (and make sure we're actually testing what we want to be testing).
changed the title [-]Remove `send_default_pii` from integrations[/-][+]Remove `send_default_pii` from integrations & integration tests[/+]on Sep 22, 2026
Activity
linear-code commentedon Sep 22, 2026
PY-2798
[-]Remove `send_default_pii` from integrations[/-][+]Remove `send_default_pii` from integrations & integration tests[/+]63 remaining items
ref(wsgi): Drop `send_default_pii` support in `RequestExtractor` (#7766)
ref(asgi): Drop send_default_pii support in _get_request_data (#7768)
ref(asgi): Drop `send_default_pii` support in `_get_request_attribute…
ref(client)!: Remove `EventScrubber` and the `event_scrubber` option (#…
ref(asgi)!: Drop `send_default_pii` support when setting user IP addr…
ref(aiomysql,asyncpg)!: Drop `record_params` option in favour of `dat…
ref(django)!: Drop `send_default_pii` support in user info collection (…
ref(db)!: Drop `record_sql_params` experiment and legacy `send_defaul…
send_default_piifrom redis-cluster tests #7878