Skip to content

Commit 4b29737

Browse files
committed
small cleanup
1 parent f2c2bc4 commit 4b29737

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sentry_sdk/tracing_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,12 @@ def has_span_streaming_enabled(options: "Optional[dict[str, Any]]") -> bool:
113113
if options is None:
114114
return False
115115

116-
is_enabled_at_top_level = options.get("trace_lifecycle") == "stream"
117116
is_enabled_in_experiment_config = (options.get("_experiments") or {}).get(
118117
"trace_lifecycle"
119118
) == "stream"
120119

121120
if options.get("trace_lifecycle") is not None:
122-
return is_enabled_at_top_level
121+
return options.get("trace_lifecycle") == "stream"
123122

124123
return is_enabled_in_experiment_config
125124

0 commit comments

Comments
 (0)