Skip to content

Commit 79a9fe1

Browse files
committed
ref: Use data collection by default
1 parent e7f379e commit 79a9fe1

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

‎sentry_sdk/utils.py‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565

6666
from sentry_sdk._types import (
6767
AttributeValue,
68-
DataCollection,
6968
Event,
7069
ExcInfo,
7170
Hint,
@@ -1970,16 +1969,7 @@ def serialize_item(
19701969

19711970

19721971
def has_data_collection_enabled(options: "Optional[dict[str, Any]]") -> bool:
1973-
if options is None:
1974-
return False
1975-
1976-
data_collection: "Optional[DataCollection]" = options.get("data_collection")
1977-
# Client options are resolved as part of client initialization, so `data_collection`
1978-
# being None could be that the user just didn't provide it.
1979-
# `provided_by_user` is what actually records whether the user actually configured it.
1980-
return data_collection is not None and data_collection.get(
1981-
"provided_by_user", False
1982-
)
1972+
return True
19831973

19841974

19851975
def get_before_send_log(

0 commit comments

Comments
 (0)