File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 66
77import sentry_sdk
88from 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
1010from 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 :
You can’t perform that action at this time.
0 commit comments