Skip to content

Commit 42664d5

Browse files
committed
updated test to match new default value
1 parent 68fece6 commit 42664d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integrations/opentelemetry/test_sampler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def keep_only_a(sampling_context):
176176
@pytest.mark.parametrize(
177177
"traces_sample_rate, expected_num_of_envelopes",
178178
[
179-
# special case for testing, do not pass any traces_sample_rate to init() (the default traces_sample_rate=None will be used)
180-
(-1, 0),
179+
# special case for testing, do not pass any traces_sample_rate to init() (the default traces_sample_rate=0 will be used)
180+
(-1, 1),
181181
# traces_sample_rate=None means do not create new traces, and also do not continue incoming traces. So, no envelopes at all.
182182
(None, 0),
183183
# traces_sample_rate=0 means do not create new traces (0% of the requests), but continue incoming traces. So envelopes will be created only if there is an incoming trace.

0 commit comments

Comments
 (0)