File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -205,14 +205,9 @@ def test_with_incoming_trace_and_trace_propagation_targets_matching(
205205 assert "baggage" in outgoing_request_headers
206206
207207 # CHECK if incoming trace is continued
208- if traces_sample_rate in (0 , 1 , USE_DEFAULT_TRACES_SAMPLE_RATE ):
209- # continue the incoming trace
210- assert INCOMING_TRACE_ID in outgoing_request_headers ["sentry-trace" ]
211- assert INCOMING_TRACE_ID in outgoing_request_headers ["baggage" ]
212- elif traces_sample_rate is None :
213- # do NOT continue the incoming trace
214- assert INCOMING_TRACE_ID not in outgoing_request_headers ["sentry-trace" ]
215- assert INCOMING_TRACE_ID not in outgoing_request_headers ["baggage" ]
208+ # Always continue the incoming trace, no matter traces_sample_rate
209+ assert INCOMING_TRACE_ID in outgoing_request_headers ["sentry-trace" ]
210+ assert INCOMING_TRACE_ID in outgoing_request_headers ["baggage" ]
216211
217212
218213@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments