Skip to content

Commit 8b8ef5e

Browse files
committed
oversight
1 parent 07c12d5 commit 8b8ef5e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sentry_sdk/integrations/opentelemetry/sampler.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,17 @@ def should_sample(
220220
sample_rate = float(custom_sampled)
221221
if sample_rate > 0:
222222
return sampled_result(
223-
parent_span_context, attributes, sample_rate=sample_rate
223+
parent_span_context,
224+
attributes,
225+
sample_rate=sample_rate,
226+
sample_rand=sample_rand,
224227
)
225228
else:
226229
return dropped_result(
227-
parent_span_context, attributes, sample_rate=sample_rate
230+
parent_span_context,
231+
attributes,
232+
sample_rate=sample_rate,
233+
sample_rand=sample_rand,
228234
)
229235
else:
230236
logger.debug(

0 commit comments

Comments
 (0)