Skip to content

Commit 66c4b6a

Browse files
committed
.
1 parent 948b926 commit 66c4b6a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/tracing/test_sampling.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import sentry_sdk
88
from sentry_sdk import start_span, capture_exception
9-
from sentry_sdk.tracing import BAGGAGE_HEADER_NAME
9+
from sentry_sdk.tracing import BAGGAGE_HEADER_NAME, SENTRY_TRACE_HEADER_NAME
1010
from sentry_sdk.utils import logger
1111

1212

@@ -61,7 +61,8 @@ def test_uses_traces_sample_rate_correctly(
6161

6262
with sentry_sdk.continue_trace(
6363
{
64-
BAGGAGE_HEADER_NAME: "sentry-sample_rand=0.500000,sentry-trace_id=397f36434d07b20135324b2e6ae70c77"
64+
BAGGAGE_HEADER_NAME: "sentry-sample_rand=0.500000,sentry-trace_id=397f36434d07b20135324b2e6ae70c77",
65+
SENTRY_TRACE_HEADER_NAME: "397f36434d07b20135324b2e6ae70c77-1234567890abcdef",
6566
}
6667
):
6768
with start_span(name="dogpark") as root_span:
@@ -81,7 +82,8 @@ def test_uses_traces_sampler_return_value_correctly(
8182

8283
with sentry_sdk.continue_trace(
8384
{
84-
BAGGAGE_HEADER_NAME: "sentry-sample_rand=0.500000,sentry-trace_id=397f36434d07b20135324b2e6ae70c77"
85+
BAGGAGE_HEADER_NAME: "sentry-sample_rand=0.500000,sentry-trace_id=397f36434d07b20135324b2e6ae70c77",
86+
SENTRY_TRACE_HEADER_NAME: "397f36434d07b20135324b2e6ae70c77-1234567890abcdef",
8587
}
8688
):
8789
with start_span(name="dogpark") as root_span:

0 commit comments

Comments
 (0)