From e9b256f030e415e2229bb3803cabb58806a4bc9e Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Mon, 5 Oct 2026 11:50:20 +0200 Subject: [PATCH] chore: Remove data_collection from _experiments --- MIGRATION_GUIDE.md | 1 + sentry_sdk/consts.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index 9fcf6322a3..48014e91e0 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -163,6 +163,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh - The `trace_ignore_status_codes` option was removed. - `add_attachment` no longer accepts an `add_to_transactions` argument. - The `stream_gen_ai_spans` option was removed. All spans are streamed now. +- The `data_collection` option is no longer accessible under `_experiments`. Use it as a top-level option instead. ## Deprecated diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py index 4c47e4c155..d3896655d8 100644 --- a/sentry_sdk/consts.py +++ b/sentry_sdk/consts.py @@ -73,7 +73,6 @@ class CompressionAlgo(Enum): "transport_num_pools": Optional[int], "transport_http2": Optional[bool], "transport_async": Optional[bool], - "data_collection": Optional[DataCollectionUserOptions], }, total=False, )