Skip to content

Commit 336b643

Browse files
committed
order
1 parent 51342fb commit 336b643

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sentry_sdk/scope.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,15 +1205,16 @@ def start_streamed_span(
12051205
attributes,
12061206
self,
12071207
)
1208+
1209+
if sample_rate is not None:
1210+
self._update_sample_rate(sample_rate)
1211+
12081212
if sampled is False:
12091213
return NoOpStreamedSpan(
12101214
scope=self,
12111215
unsampled_reason=outcome,
12121216
)
12131217

1214-
if sample_rate is not None:
1215-
self._update_sample_rate(sample_rate)
1216-
12171218
return StreamedSpan(
12181219
name=name,
12191220
attributes=attributes,

0 commit comments

Comments
 (0)