Skip to content

Commit dfd1d95

Browse files
committed
Updated some asserts
1 parent 0b2f59c commit dfd1d95

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/tracing/test_trace_propagation.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)