We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51342fb commit 336b643Copy full SHA for 336b643
sentry_sdk/scope.py
@@ -1205,15 +1205,16 @@ def start_streamed_span(
1205
attributes,
1206
self,
1207
)
1208
+
1209
+ if sample_rate is not None:
1210
+ self._update_sample_rate(sample_rate)
1211
1212
if sampled is False:
1213
return NoOpStreamedSpan(
1214
scope=self,
1215
unsampled_reason=outcome,
1216
1217
- if sample_rate is not None:
- self._update_sample_rate(sample_rate)
-
1218
return StreamedSpan(
1219
name=name,
1220
attributes=attributes,
0 commit comments