Skip to content

Commit d00c0f6

Browse files
committed
fixes
1 parent 751cd69 commit d00c0f6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/tracing_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ def _fill_sample_rand(self) -> None:
664664

665665
# Get the sample rate and compute the transformation that will map the random value
666666
# to the desired range: [0, 1), [0, sample_rate), or [sample_rate, 1).
667-
lower, upper = _sample_rand_range(self.parent_sampled, self._sample_rate())
667+
sample_rate = self._sample_rate()
668+
lower, upper = _sample_rand_range(self.parent_sampled, sample_rate)
668669

669670
try:
670671
sample_rand = _generate_sample_rand(self.trace_id, interval=(lower, upper))

tests/tracing/test_http_headers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import pytest
44

5-
import sentry_sdk
65
from sentry_sdk.tracing import Transaction
76
from sentry_sdk.tracing_utils import extract_sentrytrace_data
87

0 commit comments

Comments
 (0)