Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/tracing/test_propagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ def test_span_in_transaction(sentry_init):
next(span.iter_headers())


def test_span_in_transaction_span_streaming(sentry_init):
sentry_init(traces_sample_rate=1.0, _experiments={"trace_lifecycle": "stream"})

with sentry_sdk.traces.start_span(name="test"):
with sentry_sdk.traces.start_span(name="test2") as span:
# Ensure the headers are there
next(span._iter_headers())


def test_span_in_span_in_transaction(sentry_init):
sentry_init(traces_sample_rate=1.0)

Expand All @@ -39,3 +48,13 @@ def test_span_in_span_in_transaction(sentry_init):
with sentry_sdk.start_span(op="test3") as span_inner:
# Ensure the headers are there
next(span_inner.iter_headers())


def test_span_in_span_in_transaction_span_streaming(sentry_init):
sentry_init(traces_sample_rate=1.0, _experiments={"trace_lifecycle": "stream"})

with sentry_sdk.traces.start_span(name="test"):
with sentry_sdk.traces.start_span(name="test2"):
with sentry_sdk.traces.start_span(name="test3") as span_inner:
# Ensure the headers are there
next(span_inner._iter_headers())
Loading