diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index 41bb93ff69..89bf1bd1d4 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. - The experimental `record_sql_params` option was removed. Use the `database_query_data` setting of `data_collection` instead. - The `record_params` option of `AsyncPGIntegration` and `AioMySQLIntegration` was removed. Use the `database_query_data` setting of `data_collection` instead. diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py index dd8b2ef775..e5ca528e1d 100644 --- a/sentry_sdk/consts.py +++ b/sentry_sdk/consts.py @@ -72,7 +72,6 @@ class CompressionAlgo(Enum): "transport_num_pools": Optional[int], "transport_http2": Optional[bool], "transport_async": Optional[bool], - "data_collection": Optional[DataCollectionUserOptions], }, total=False, )