Skip to content

Commit 40f2028

Browse files
committed
This is testing another header option and has to stay
1 parent f808802 commit 40f2028

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integrations/celery/test_celery.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,13 @@ def dummy_task(self, message):
528528
).get()
529529
assert transaction_trace_id == task_transaction_id
530530

531+
# should NOT propagate trace (overrides `propagate_traces` parameter in integration constructor)
532+
task_transaction_id = dummy_task.apply_async(
533+
args=("another message",),
534+
headers={"sentry-propagate-traces": False},
535+
).get()
536+
assert transaction_trace_id != task_transaction_id
537+
531538

532539
def test_apply_async_manually_span(sentry_init):
533540
sentry_init(

0 commit comments

Comments
 (0)