We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d1421 commit 032a6c4Copy full SHA for 032a6c4
tests/tracing/test_sampling.py
@@ -182,8 +182,13 @@ def test_inherits_parent_sampling_decision_when_traces_sampler_undefined(
182
sentry_init(traces_sample_rate=0.5)
183
mock_random_value = 0.25 if parent_sampling_decision is False else 0.75
184
185
+ sentry_trace_header = (
186
+ "12312012123120121231201212312012-1121201211212012-{sampled}".format(
187
+ sampled=int(parent_sampling_decision)
188
+ )
189
190
with mock.patch.object(random, "random", return_value=mock_random_value):
- with start_span(name="catpark", sampled=parent_sampling_decision):
191
+ with sentry_sdk.continue_trace({"sentry-trace": sentry_trace_header}):
192
with start_span(name="dogpark") as span:
193
pass
194
0 commit comments