diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py index 2c27743e79..2ef93110c8 100644 --- a/sentry_sdk/utils.py +++ b/sentry_sdk/utils.py @@ -65,7 +65,6 @@ from sentry_sdk._types import ( AttributeValue, - DataCollection, Event, ExcInfo, Hint, @@ -1970,16 +1969,7 @@ def serialize_item( def has_data_collection_enabled(options: "Optional[dict[str, Any]]") -> bool: - if options is None: - return False - - data_collection: "Optional[DataCollection]" = options.get("data_collection") - # Client options are resolved as part of client initialization, so `data_collection` - # being None could be that the user just didn't provide it. - # `provided_by_user` is what actually records whether the user actually configured it. - return data_collection is not None and data_collection.get( - "provided_by_user", False - ) + return True def get_before_send_log(