From 72f071c2b0218b250ee2c10d8d7fb9a32b73c03d Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Wed, 23 Sep 2026 11:42:10 +0200 Subject: [PATCH] Do not backfill unset send_default_pii --- sentry_sdk/data_collection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sentry_sdk/data_collection.py b/sentry_sdk/data_collection.py index 1cc92a2763..2ad61473f0 100644 --- a/sentry_sdk/data_collection.py +++ b/sentry_sdk/data_collection.py @@ -304,6 +304,8 @@ def _resolve_data_collection(options: "Dict[str, Any]") -> "DataCollection": user_dc = options.get("_experiments", {}).get("data_collection") send_default_pii = options.get("send_default_pii") + if send_default_pii is None: + user_dc = {} include_local_variables = ( bool(options.get("include_local_variables"))