Skip to content

test(huggingface_hub): Parametrize tests on the streaming trace lifecycle - #7436

Open
alexander-alderman-webb wants to merge 1 commit into
webb/huggingface-hub/approx-dictfrom
webb/huggingface-hub/span-streaming
Open

test(huggingface_hub): Parametrize tests on the streaming trace lifecycle#7436
alexander-alderman-webb wants to merge 1 commit into
webb/huggingface-hub/approx-dictfrom
webb/huggingface-hub/span-streaming

Conversation

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

Description

Add streaming tests, as we only keep these in the major.

Issues

Reminders

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review September 8, 2026 14:56
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner September 8, 2026 14:56
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

131744 passed | ❌ 31 failed | ⏭️ 7131 skipped | Total: 138906 | Pass Rate: 94.84% | Execution Time: 482m 20s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +979
Passed Tests 📈 +949
Failed Tests 📈 +30
Skipped Tests

➕ New Tests (29)

View new tests
  • test_async_transport_rate_limiting_with_concurrency
    • File: tests.test_transport
    • Status: ❌ Failing
  • test_span_templates_ai_dicts[True]
    • File: tests.tracing.test_decorator
    • Status: ❌ Failing
  • test_span_templates_ai_dicts[False]
    • File: tests.tracing.test_decorator
    • Status: ❌ Failing
  • test_span_templates_ai_objects[True]
    • File: tests.tracing.test_decorator
    • Status: ❌ Failing
  • test_span_templates_ai_objects[False]
    • File: tests.tracing.test_decorator
    • Status: ❌ Failing
  • test_prefers_traces_sampler_to_traces_sample_rate_span_streaming[1-False]
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_ignores_inherited_sample_decision_when_traces_sampler_defined_span_streaming[1]
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_inherits_parent_sampling_decision_when_traces_sampler_undefined_span_streaming[0]
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[dogs are great]
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[None]
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[nan]
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[-1.121]
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[1.231]
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_unsampled_spans_produce_client_report_if_traces_sample_rate_defined
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_unsampled_spans_produce_client_report_if_traces_sampler_defined
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_no_client_reports_if_tracing_is_off
    • File: tests.tracing.test_sampling
    • Status: ❌ Failing
  • test_envelope_by_trace_id
    • File: tests.tracing.test_span_batcher
    • Status: ❌ Failing
  • test_drop_isolated_per_bucket
    • File: tests.tracing.test_span_batcher
    • Status: ❌ Failing
  • test_bucket_recreated_after_flush
    • File: tests.tracing.test_span_batcher
    • Status: ❌ Failing
  • test_quiet_buckets_flushed_with_busy_neighbors
    • File: tests.tracing.test_span_batcher
    • Status: ❌ Failing
  • test_transport_format
    • File: tests.tracing.test_span_batcher
    • Status: ❌ Failing
  • test_trace_bucket_flushes_when_segment_ends
    • File: tests.tracing.test_span_batcher
    • Status: ❌ Failing
  • test_ignore_spans_basic
    • File: tests.tracing.test_span_streaming
    • Status: ❌ Failing
  • test_ignore_spans_set_ignored_child_span_as_parent_explicit_parent_span
    • File: tests.tracing.test_span_streaming
    • Status: ❌ Failing
  • test_ignore_spans_reparenting
    • File: tests.tracing.test_span_streaming
    • Status: ❌ Failing
  • test_ignored_spans_produce_client_report
    • File: tests.tracing.test_span_streaming
    • Status: ❌ Failing
  • test_segment_span_has_profiler_id
    • File: tests.tracing.test_span_streaming
    • Status: ❌ Failing
  • test_profile_stops_when_segment_ends
    • File: tests.tracing.test_span_streaming
    • Status: ❌ Failing
  • test_default_attributes
    • File: tests.tracing.test_span_streaming
    • Status: ❌ Failing

➖ Removed Tests (1)

View removed tests
  • test_cache_spans_templatetag[True]
    • File: tests.integrations.django.test_cache_module

❌ Failed Tests

test_async_transport_rate_limiting_with_concurrency

File: tests.test_transport
Suite: py3.15t-common
Error: AssertionError: assert False is True + where False = _check_disabled('error') + where _check_disabled = <sentry_sdk.transport.AsyncHttpTransport object at 0x7fdeef882410>._check_disabled + where <sentry_sdk.transport.AsyncHttpTransport object at 0x7fdeef882410> = <sentry_sdk.client._Client object at 0x7fe7247712d0>.transport

Stack Trace
tests/test_transport.py:1101: in test_async_transport_rate_limiting_with_concurrency
    assert client.transport._check_disabled("error") is True
E   AssertionError: assert False is True
E    +  where False = _check_disabled('error')
E    +    where _check_disabled = <sentry_sdk.transport.AsyncHttpTransport object at 0x7fdeef882410>._check_disabled
E    +      where <sentry_sdk.transport.AsyncHttpTransport object at 0x7fdeef882410> = <sentry_sdk.client._Client object at 0x7fe7247712d0>.transport

test_span_templates_ai_dicts[True]

File: tests.tracing.test_decorator
Suite: py3.15t-common
Error: AssertionError: assert {'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', 'gen_ai.conversation.id': 'conv-tx-should-not-appear', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d', 'sentry.environment': 'production', 'server.address': 'runnervm9xg2d', 'sentry.segment.name': 'test-transaction', 'sentry.segment.id': '98c35ad99ce046ad', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0'} == {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', 'gen_ai.operation.name': 'invoke_agent', 'process.runtime.name': , 'process.runtime.version': , 'sentry.environment': 'production', 'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'sentry.release': , 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': , 'sentry.segment.id': , 'sentry.segment.name': 'test-transaction', 'server.address': , 'thread.id': , 'thread.name': } Common items: {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', 'gen_ai.operation.name': 'invoke_agent', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'sentry.environment': 'production', 'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'sentry.segment.id': '98c35ad99ce046ad', 'sentry.segment.name': 'test-transaction', 'server.address': 'runnervm9xg2d', 'thread.id': '140636404397888', 'thread.name': 'MainThread'} Left contains 1 more item: {'gen_ai.conversation.id': 'conv-tx-should-not-appear'} Full diff: { - 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', - 'gen_ai.operation.name': 'invoke_agent', - 'process.runtime.name': , - 'process.runtime.version': , - 'sentry.environment': 'production', 'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', - 'sentry.release': , + 'thread.id': '140636404397888', + 'thread.name': 'MainThread', + 'gen_ai.operation.name': 'invoke_agent', + 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', + 'gen_ai.conversation.id': 'conv-tx-should-not-appear', + 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d', + 'sentry.environment': 'production', + 'server.address': 'runnervm9xg2d', + 'sentry.segment.name': 'test-transaction', + 'sentry.segment.id': '98c35ad99ce046ad', 'sentry.sdk.name': 'sentry.python', - 'sentry.sdk.version': , ? ^^^^^ + 'sentry.sdk.version': '2.69.1', ? ^^^^^^^^ + 'process.runtime.name': 'CPython', + 'process.runtime.version': '3.15.0', - 'sentry.segment.id': , - 'sentry.segment.name': 'test-transaction', - 'server.address': , - 'thread.id': , - 'thread.name': , }

Stack Trace
tests/tracing/test_decorator.py:439: in test_span_templates_ai_dicts
    assert agent_span["attributes"] == {
E   AssertionError: assert {'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent', 'gen_ai.conversation.id': 'conv-tx-should-not-appear', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d', 'sentry.environment': 'production', 'server.address': 'runnervm9xg2d', 'sentry.segment.name': 'test-transaction', 'sentry.segment.id': '98c35ad99ce046ad', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0'} == {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent', 'gen_ai.operation.name': 'invoke_agent', 'process.runtime.name': <ANY>, 'process.runtime.version': <ANY>, 'sentry.environment': 'production', 'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'sentry.release': <ANY>, 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': <ANY>, 'sentry.segment.id': <ANY>, 'sentry.segment.name': 'test-transaction', 'server.address': <ANY>, 'thread.id': <ANY>, 'thread.name': <ANY>}
E     
E     Common items:
E     {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent',
E      'gen_ai.operation.name': 'invoke_agent',
E      'process.runtime.name': 'CPython',
E      'process.runtime.version': '3.15.0',
E      'sentry.environment': 'production',
E      'sentry.op': 'gen_ai.invoke_agent',
E      'sentry.origin': 'manual',
E      'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d',
E      'sentry.sdk.name': 'sentry.python',
E      'sentry.sdk.version': '2.69.1',
E      'sentry.segment.id': '98c35ad99ce046ad',
E      'sentry.segment.name': 'test-transaction',
E      'server.address': 'runnervm9xg2d',
E      'thread.id': '140636404397888',
E      'thread.name': 'MainThread'}
E     Left contains 1 more item:
E     {'gen_ai.conversation.id': 'conv-tx-should-not-appear'}
E     
E     Full diff:
E       {
E     -     'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent',
E     -     'gen_ai.operation.name': 'invoke_agent',
E     -     'process.runtime.name': <ANY>,
E     -     'process.runtime.version': <ANY>,
E     -     'sentry.environment': 'production',
E           'sentry.op': 'gen_ai.invoke_agent',
E           'sentry.origin': 'manual',
E     -     'sentry.release': <ANY>,
E     +     'thread.id': '140636404397888',
E     +     'thread.name': 'MainThread',
E     +     'gen_ai.operation.name': 'invoke_agent',
E     +     'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent',
E     +     'gen_ai.conversation.id': 'conv-tx-should-not-appear',
E     +     'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d',
E     +     'sentry.environment': 'production',
E     +     'server.address': 'runnervm9xg2d',
E     +     'sentry.segment.name': 'test-transaction',
E     +     'sentry.segment.id': '98c35ad99ce046ad',
E           'sentry.sdk.name': 'sentry.python',
E     -     'sentry.sdk.version': <ANY>,
E     ?                           ^^^^^
E     +     'sentry.sdk.version': '2.69.1',
E     ?                           ^^^^^^^^
E     +     'process.runtime.name': 'CPython',
E     +     'process.runtime.version': '3.15.0',
E     -     'sentry.segment.id': <ANY>,
E     -     'sentry.segment.name': 'test-transaction',
E     -     'server.address': <ANY>,
E     -     'thread.id': <ANY>,
E     -     'thread.name': <ANY>,
E       }

test_span_templates_ai_dicts[False]

File: tests.tracing.test_decorator
Suite: py3.15t-common
Error: AssertionError: assert {'thread.id': '140636404397888', 'thread.name': 'MainThread', 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', 'gen_ai.conversation.id': 'conv-tx-should-not-appear'} == {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', 'gen_ai.operation.name': 'invoke_agent', 'thread.id': , 'thread.name': } Common items: {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', 'gen_ai.operation.name': 'invoke_agent', 'thread.id': '140636404397888', 'thread.name': 'MainThread'} Left contains 1 more item: {'gen_ai.conversation.id': 'conv-tx-should-not-appear'} Full diff: { + 'thread.id': '140636404397888', + 'thread.name': 'MainThread', + 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts..my_agent', + 'gen_ai.conversation.id': 'conv-tx-should-not-appear', - 'gen_ai.operation.name': 'invoke_agent', - 'thread.id': , - 'thread.name': , }

Stack Trace
tests/tracing/test_decorator.py:530: in test_span_templates_ai_dicts
    assert agent_span["data"] == {
E   AssertionError: assert {'thread.id': '140636404397888', 'thread.name': 'MainThread', 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent', 'gen_ai.conversation.id': 'conv-tx-should-not-appear'} == {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent', 'gen_ai.operation.name': 'invoke_agent', 'thread.id': <ANY>, 'thread.name': <ANY>}
E     
E     Common items:
E     {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent',
E      'gen_ai.operation.name': 'invoke_agent',
E      'thread.id': '140636404397888',
E      'thread.name': 'MainThread'}
E     Left contains 1 more item:
E     {'gen_ai.conversation.id': 'conv-tx-should-not-appear'}
E     
E     Full diff:
E       {
E     +     'thread.id': '140636404397888',
E     +     'thread.name': 'MainThread',
E     +     'gen_ai.operation.name': 'invoke_agent',
E           'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_dicts.<locals>.my_agent',
E     +     'gen_ai.conversation.id': 'conv-tx-should-not-appear',
E     -     'gen_ai.operation.name': 'invoke_agent',
E     -     'thread.id': <ANY>,
E     -     'thread.name': <ANY>,
E       }

test_span_templates_ai_objects[True]

File: tests.tracing.test_decorator
Suite: py3.15t-common
Error: AssertionError: assert {'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', 'gen_ai.conversation.id': 'conv-tx-should-not-appear', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d', 'sentry.environment': 'production', 'server.address': 'runnervm9xg2d', 'sentry.segment.name': 'test-transaction', 'sentry.segment.id': 'ac6e70e204411e1b', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0'} == {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', 'gen_ai.operation.name': 'invoke_agent', 'process.runtime.name': , 'process.runtime.version': , 'sentry.environment': 'production', 'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'sentry.release': , 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': , 'sentry.segment.id': , 'sentry.segment.name': 'test-transaction', 'server.address': , 'thread.id': , 'thread.name': } Common items: {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', 'gen_ai.operation.name': 'invoke_agent', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'sentry.environment': 'production', 'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'sentry.segment.id': 'ac6e70e204411e1b', 'sentry.segment.name': 'test-transaction', 'server.address': 'runnervm9xg2d', 'thread.id': '140636404397888', 'thread.name': 'MainThread'} Left contains 1 more item: {'gen_ai.conversation.id': 'conv-tx-should-not-appear'} Full diff: { - 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', - 'gen_ai.operation.name': 'invoke_agent', - 'process.runtime.name': , - 'process.runtime.version': , - 'sentry.environment': 'production', 'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', - 'sentry.release': , + 'thread.id': '140636404397888', + 'thread.name': 'MainThread', + 'gen_ai.operation.name': 'invoke_agent', + 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', + 'gen_ai.conversation.id': 'conv-tx-should-not-appear', + 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d', + 'sentry.environment': 'production', + 'server.address': 'runnervm9xg2d', + 'sentry.segment.name': 'test-transaction', + 'sentry.segment.id': 'ac6e70e204411e1b', 'sentry.sdk.name': 'sentry.python', - 'sentry.sdk.version': , ? ^^^^^ + 'sentry.sdk.version': '2.69.1', ? ^^^^^^^^ + 'process.runtime.name': 'CPython', + 'process.runtime.version': '3.15.0', - 'sentry.segment.id': , - 'sentry.segment.name': 'test-transaction', - 'server.address': , - 'thread.id': , - 'thread.name': , }

Stack Trace
tests/tracing/test_decorator.py:640: in test_span_templates_ai_objects
    assert agent_span["attributes"] == {
E   AssertionError: assert {'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent', 'gen_ai.conversation.id': 'conv-tx-should-not-appear', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d', 'sentry.environment': 'production', 'server.address': 'runnervm9xg2d', 'sentry.segment.name': 'test-transaction', 'sentry.segment.id': 'ac6e70e204411e1b', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0'} == {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent', 'gen_ai.operation.name': 'invoke_agent', 'process.runtime.name': <ANY>, 'process.runtime.version': <ANY>, 'sentry.environment': 'production', 'sentry.op': 'gen_ai.invoke_agent', 'sentry.origin': 'manual', 'sentry.release': <ANY>, 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': <ANY>, 'sentry.segment.id': <ANY>, 'sentry.segment.name': 'test-transaction', 'server.address': <ANY>, 'thread.id': <ANY>, 'thread.name': <ANY>}
E     
E     Common items:
E     {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent',
E      'gen_ai.operation.name': 'invoke_agent',
E      'process.runtime.name': 'CPython',
E      'process.runtime.version': '3.15.0',
E      'sentry.environment': 'production',
E      'sentry.op': 'gen_ai.invoke_agent',
E      'sentry.origin': 'manual',
E      'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d',
E      'sentry.sdk.name': 'sentry.python',
E      'sentry.sdk.version': '2.69.1',
E      'sentry.segment.id': 'ac6e70e204411e1b',
E      'sentry.segment.name': 'test-transaction',
E      'server.address': 'runnervm9xg2d',
E      'thread.id': '140636404397888',
E      'thread.name': 'MainThread'}
E     Left contains 1 more item:
E     {'gen_ai.conversation.id': 'conv-tx-should-not-appear'}
E     
E     Full diff:
E       {
E     -     'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent',
E     -     'gen_ai.operation.name': 'invoke_agent',
E     -     'process.runtime.name': <ANY>,
E     -     'process.runtime.version': <ANY>,
E     -     'sentry.environment': 'production',
E           'sentry.op': 'gen_ai.invoke_agent',
E           'sentry.origin': 'manual',
E     -     'sentry.release': <ANY>,
E     +     'thread.id': '140636404397888',
E     +     'thread.name': 'MainThread',
E     +     'gen_ai.operation.name': 'invoke_agent',
E     +     'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent',
E     +     'gen_ai.conversation.id': 'conv-tx-should-not-appear',
E     +     'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d',
E     +     'sentry.environment': 'production',
E     +     'server.address': 'runnervm9xg2d',
E     +     'sentry.segment.name': 'test-transaction',
E     +     'sentry.segment.id': 'ac6e70e204411e1b',
E           'sentry.sdk.name': 'sentry.python',
E     -     'sentry.sdk.version': <ANY>,
E     ?                           ^^^^^
E     +     'sentry.sdk.version': '2.69.1',
E     ?                           ^^^^^^^^
E     +     'process.runtime.name': 'CPython',
E     +     'process.runtime.version': '3.15.0',
E     -     'sentry.segment.id': <ANY>,
E     -     'sentry.segment.name': 'test-transaction',
E     -     'server.address': <ANY>,
E     -     'thread.id': <ANY>,
E     -     'thread.name': <ANY>,
E       }

test_span_templates_ai_objects[False]

File: tests.tracing.test_decorator
Suite: py3.15t-common
Error: AssertionError: assert {'thread.id': '140636404397888', 'thread.name': 'MainThread', 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', 'gen_ai.conversation.id': 'conv-tx-should-not-appear'} == {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', 'gen_ai.operation.name': 'invoke_agent', 'thread.id': , 'thread.name': } Common items: {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', 'gen_ai.operation.name': 'invoke_agent', 'thread.id': '140636404397888', 'thread.name': 'MainThread'} Left contains 1 more item: {'gen_ai.conversation.id': 'conv-tx-should-not-appear'} Full diff: { + 'thread.id': '140636404397888', + 'thread.name': 'MainThread', + 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects..my_agent', + 'gen_ai.conversation.id': 'conv-tx-should-not-appear', - 'gen_ai.operation.name': 'invoke_agent', - 'thread.id': , - 'thread.name': , }

Stack Trace
tests/tracing/test_decorator.py:727: in test_span_templates_ai_objects
    assert agent_span["data"] == {
E   AssertionError: assert {'thread.id': '140636404397888', 'thread.name': 'MainThread', 'gen_ai.operation.name': 'invoke_agent', 'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent', 'gen_ai.conversation.id': 'conv-tx-should-not-appear'} == {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent', 'gen_ai.operation.name': 'invoke_agent', 'thread.id': <ANY>, 'thread.name': <ANY>}
E     
E     Common items:
E     {'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent',
E      'gen_ai.operation.name': 'invoke_agent',
E      'thread.id': '140636404397888',
E      'thread.name': 'MainThread'}
E     Left contains 1 more item:
E     {'gen_ai.conversation.id': 'conv-tx-should-not-appear'}
E     
E     Full diff:
E       {
E     +     'thread.id': '140636404397888',
E     +     'thread.name': 'MainThread',
E     +     'gen_ai.operation.name': 'invoke_agent',
E           'gen_ai.agent.name': 'test_decorator.test_span_templates_ai_objects.<locals>.my_agent',
E     +     'gen_ai.conversation.id': 'conv-tx-should-not-appear',
E     -     'gen_ai.operation.name': 'invoke_agent',
E     -     'thread.id': <ANY>,
E     -     'thread.name': <ANY>,
E       }

test_prefers_traces_sampler_to_traces_sample_rate_span_streaming[1-False]

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: assert False is True + where False = .called

Stack Trace
tests/tracing/test_sampling.py:384: in test_prefers_traces_sampler_to_traces_sample_rate_span_streaming
    assert traces_sampler.called is True
E   AssertionError: assert False is True
E    +  where False = <Mock id='140589084191248'>.called

test_ignores_inherited_sample_decision_when_traces_sampler_defined_span_streaming[1]

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: assert True is not True + where True = <StreamedSpan(name=dogpark, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=92b40c364adb185f, parent_span_id=b1597e62e758dbaf, active=True)>.sampled + and True = bool(1) + where 1 = int('1')

Stack Trace
tests/tracing/test_sampling.py:421: in test_ignores_inherited_sample_decision_when_traces_sampler_defined_span_streaming
    assert span.sampled is not bool(int(parent_sampling_decision))
E   AssertionError: assert True is not True
E    +  where True = <StreamedSpan(name=dogpark, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=92b40c364adb185f, parent_span_id=b1597e62e758dbaf, active=True)>.sampled
E    +  and   True = bool(1)
E    +    where 1 = int('1')

test_inherits_parent_sampling_decision_when_traces_sampler_undefined_span_streaming[0]

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: assert True is False + where True = <StreamedSpan(name=dogpark, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=bd3d6c4aa3489859, parent_span_id=9256b89fa20e0c2e, active=True)>.sampled + and False = bool(0) + where 0 = int('0')

Stack Trace
tests/tracing/test_sampling.py:475: in test_inherits_parent_sampling_decision_when_traces_sampler_undefined_span_streaming
    assert span.sampled is bool(int(parent_sampling_decision))
E   AssertionError: assert True is False
E    +  where True = <StreamedSpan(name=dogpark, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=bd3d6c4aa3489859, parent_span_id=9256b89fa20e0c2e, active=True)>.sampled
E    +  and   False = bool(0)
E    +    where 0 = int('0')

test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[dogs are great]

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: mock(<tests.conftest.string_containing_matcher..StringContaining object at 0x7fdd726c2290>) call not found

Stack Trace
tests/tracing/test_sampling.py:633: in test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming
    logger.warning.assert_any_call(StringContaining("Given sample rate is invalid"))
../../_temp/uv-python-dir/cpython-3.15.0rc1+freethreaded-linux-x86_64-gnu/lib/python3.15t/unittest/mock.py:1057: in assert_any_call
    raise AssertionError(
E   AssertionError: mock(<tests.conftest.string_containing_matcher.<locals>.StringContaining object at 0x7fdd726c2290>) call not found

test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[None]

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: mock(<tests.conftest.string_containing_matcher..StringContaining object at 0x7fdd726c3f10>) call not found

Stack Trace
tests/tracing/test_sampling.py:633: in test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming
    logger.warning.assert_any_call(StringContaining("Given sample rate is invalid"))
../../_temp/uv-python-dir/cpython-3.15.0rc1+freethreaded-linux-x86_64-gnu/lib/python3.15t/unittest/mock.py:1057: in assert_any_call
    raise AssertionError(
E   AssertionError: mock(<tests.conftest.string_containing_matcher.<locals>.StringContaining object at 0x7fdd726c3f10>) call not found

test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[nan]

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: mock(<tests.conftest.string_containing_matcher..StringContaining object at 0x7fdd726c9910>) call not found

Stack Trace
tests/tracing/test_sampling.py:633: in test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming
    logger.warning.assert_any_call(StringContaining("Given sample rate is invalid"))
../../_temp/uv-python-dir/cpython-3.15.0rc1+freethreaded-linux-x86_64-gnu/lib/python3.15t/unittest/mock.py:1057: in assert_any_call
    raise AssertionError(
E   AssertionError: mock(<tests.conftest.string_containing_matcher.<locals>.StringContaining object at 0x7fdd726c9910>) call not found

test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[-1.121]

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: mock(<tests.conftest.string_containing_matcher..StringContaining object at 0x7fdd726cbd10>) call not found

Stack Trace
tests/tracing/test_sampling.py:633: in test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming
    logger.warning.assert_any_call(StringContaining("Given sample rate is invalid"))
../../_temp/uv-python-dir/cpython-3.15.0rc1+freethreaded-linux-x86_64-gnu/lib/python3.15t/unittest/mock.py:1057: in assert_any_call
    raise AssertionError(
E   AssertionError: mock(<tests.conftest.string_containing_matcher.<locals>.StringContaining object at 0x7fdd726cbd10>) call not found

test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming[1.231]

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: mock(<tests.conftest.string_containing_matcher..StringContaining object at 0x7fdd726c2e90>) call not found

Stack Trace
tests/tracing/test_sampling.py:633: in test_warns_and_sets_sampled_to_false_on_invalid_traces_sampler_return_value_span_streaming
    logger.warning.assert_any_call(StringContaining("Given sample rate is invalid"))
../../_temp/uv-python-dir/cpython-3.15.0rc1+freethreaded-linux-x86_64-gnu/lib/python3.15t/unittest/mock.py:1057: in assert_any_call
    raise AssertionError(
E   AssertionError: mock(<tests.conftest.string_containing_matcher.<locals>.StringContaining object at 0x7fdd726c2e90>) call not found

test_unsampled_spans_produce_client_report_if_traces_sample_rate_defined

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: assert not [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'ab29eb2e4c809ffd', 'name': 'child1', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879843.839654, 'end_timestamp': 1788879843.839676, 'parent_span_id': 'b4f4e7b06f1805fb', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '98012d6bd35122c1', 'name': 'child2', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879843.841658, 'end_timestamp': 1788879843.841686, 'parent_span_id': 'b4f4e7b06f1805fb', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'b4f4e7b06f1805fb', 'name': 'segment', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879843.839593, 'end_timestamp': 1788879843.841777, 'parent_span_id': 'a73363d496ec250a', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}]

Stack Trace
tests/tracing/test_sampling.py:717: in test_unsampled_spans_produce_client_report_if_traces_sample_rate_defined
    assert not spans
E   AssertionError: assert not [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'ab29eb2e4c809ffd', 'name': 'child1', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879843.839654, 'end_timestamp': 1788879843.839676, 'parent_span_id': 'b4f4e7b06f1805fb', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '98012d6bd35122c1', 'name': 'child2', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879843.841658, 'end_timestamp': 1788879843.841686, 'parent_span_id': 'b4f4e7b06f1805fb', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'b4f4e7b06f1805fb', 'name': 'segment', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879843.839593, 'end_timestamp': 1788879843.841777, 'parent_span_id': 'a73363d496ec250a', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}]

test_unsampled_spans_produce_client_report_if_traces_sampler_defined

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: assert not [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '81cee091ca74f379', 'name': 'child1', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.014443, 'end_timestamp': 1788879844.014466, 'parent_span_id': '860fc16e93b4815e', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '92077898b8dfdbe3', 'name': 'child2', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.01652, 'end_timestamp': 1788879844.016546, 'parent_span_id': '860fc16e93b4815e', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '860fc16e93b4815e', 'name': 'segment', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.014369, 'end_timestamp': 1788879844.016611, 'parent_span_id': 'a73363d496ec250a', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}]

Stack Trace
tests/tracing/test_sampling.py:746: in test_unsampled_spans_produce_client_report_if_traces_sampler_defined
    assert not spans
E   AssertionError: assert not [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '81cee091ca74f379', 'name': 'child1', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.014443, 'end_timestamp': 1788879844.014466, 'parent_span_id': '860fc16e93b4815e', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '92077898b8dfdbe3', 'name': 'child2', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.01652, 'end_timestamp': 1788879844.016546, 'parent_span_id': '860fc16e93b4815e', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '860fc16e93b4815e', 'name': 'segment', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.014369, 'end_timestamp': 1788879844.016611, 'parent_span_id': 'a73363d496ec250a', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}]

test_no_client_reports_if_tracing_is_off

File: tests.tracing.test_sampling
Suite: py3.15t-common
Error: AssertionError: assert not [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '97897a8836f868ac', 'name': 'child1', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.186404, 'end_timestamp': 1788879844.186426, 'parent_span_id': '932cc13044745275', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '9d5cc1ff3fb3e371', 'name': 'child2', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.188265, 'end_timestamp': 1788879844.188292, 'parent_span_id': '932cc13044745275', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '932cc13044745275', 'name': 'segment', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.186336, 'end_timestamp': 1788879844.188355, 'parent_span_id': 'a73363d496ec250a', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}]

Stack Trace
tests/tracing/test_sampling.py:775: in test_no_client_reports_if_tracing_is_off
    assert not spans
E   AssertionError: assert not [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '97897a8836f868ac', 'name': 'child1', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.186404, 'end_timestamp': 1788879844.186426, 'parent_span_id': '932cc13044745275', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '9d5cc1ff3fb3e371', 'name': 'child2', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.188265, 'end_timestamp': 1788879844.188292, 'parent_span_id': '932cc13044745275', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '932cc13044745275', 'name': 'segment', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879844.186336, 'end_timestamp': 1788879844.188355, 'parent_span_id': 'a73363d496ec250a', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': 'ae1a67666840f6d5', 'sentry.segment.name': 'dogpark', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}]

test_envelope_by_trace_id

File: tests.tracing.test_span_batcher
Suite: py3.15t-common
Error: AssertionError: assert 1 == 2 + where 1 = len([<Envelope headers={'sent_at': '2026-09-08T15:04:04.363245Z', 'trace': {'sample_rand': '0.500000', 'sample_rate': '1.0'}} items=[<Item headers={'item_count': 4, 'type': 'span', 'content_type': 'application/vnd.sentry.items.span.v2+json'} payload=<Payload 'application/json'> data_category='span'>]>])

Stack Trace
tests/tracing/test_span_batcher.py:45: in test_envelope_by_trace_id
    assert len(envelopes) == 2
E   AssertionError: assert 1 == 2
E    +  where 1 = len([<Envelope headers={'sent_at': '2026-09-08T15:04:04.363245Z', 'trace': {'sample_rand': '0.500000', 'sample_rate': '1.0'}} items=[<Item headers={'item_count': 4, 'type': 'span', 'content_type': 'application/vnd.sentry.items.span.v2+json'} payload=<Payload 'application/json'> data_category='span'>]>])

test_drop_isolated_per_bucket

File: tests.tracing.test_span_batcher
Suite: py3.15t-common
Error: AssertionError: assert 1 == 2 + where 1 = len([<Envelope headers={'sent_at': '2026-09-08T15:04:04.860646Z', 'trace': {'sample_rand': '0.500000', 'sample_rate': '1.0'}} items=[<Item headers={'item_count': 2, 'type': 'span', 'content_type': 'application/vnd.sentry.items.span.v2+json'} payload=<Payload 'application/json'> data_category='span'>]>])

Stack Trace
tests/tracing/test_span_batcher.py:174: in test_drop_isolated_per_bucket
    assert len(envelopes) == 2
E   AssertionError: assert 1 == 2
E    +  where 1 = len([<Envelope headers={'sent_at': '2026-09-08T15:04:04.860646Z', 'trace': {'sample_rand': '0.500000', 'sample_rate': '1.0'}} items=[<Item headers={'item_count': 2, 'type': 'span', 'content_type': 'application/vnd.sentry.items.span.v2+json'} payload=<Payload 'application/json'> data_category='span'>]>])

test_bucket_recreated_after_flush

File: tests.tracing.test_span_batcher
Suite: py3.15t-common
Error: KeyError: 'trace_id'

Stack Trace
tests/tracing/test_span_batcher.py:312: in test_bucket_recreated_after_flush
    assert envelopes[0].headers["trace"]["trace_id"] == trace_id
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'trace_id'

test_quiet_buckets_flushed_with_busy_neighbors

File: tests.tracing.test_span_batcher
Suite: py3.15t-common
Error: AssertionError: assert 1 >= 2 + where 1 = len([<Envelope headers={'sent_at': '2026-09-08T15:04:07.011783Z', 'trace': {'sample_rand': '0.500000', 'sample_rate': '1.0'}} items=[<Item headers={'item_count': 9, 'type': 'span', 'content_type': 'application/vnd.sentry.items.span.v2+json'} payload=<Payload 'application/json'> data_category='span'>]>])

Stack Trace
tests/tracing/test_span_batcher.py:388: in test_quiet_buckets_flushed_with_busy_neighbors
    assert len(envelopes) >= 2
E   AssertionError: assert 1 >= 2
E    +  where 1 = len([<Envelope headers={'sent_at': '2026-09-08T15:04:07.011783Z', 'trace': {'sample_rand': '0.500000', 'sample_rate': '1.0'}} items=[<Item headers={'item_count': 9, 'type': 'span', 'content_type': 'application/vnd.sentry.items.span.v2+json'} payload=<Payload 'application/json'> data_category='span'>]>])

test_transport_format

File: tests.tracing.test_span_batcher
Suite: py3.15t-common
Error: AssertionError: assert {'version': 2, 'items': [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'ab46cf51317aca9e', 'name': 'test', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879847.477853, 'end_timestamp': 1788879847.477892, 'parent_span_id': 'a73363d496ec250a', 'attributes': {'sentry.origin': {'value': 'manual', 'type': 'string'}, 'sentry.trace_lifecycle': {'value': 'stream', 'type': 'string'}, 'thread.id': {'value': '140636404397888', 'type': 'string'}, 'thread.name': {'value': 'MainThread', 'type': 'string'}, 'sentry.segment.id': {'value': 'ae1a67666840f6d5', 'type': 'string'}, 'sentry.segment.name': {'value': 'dogpark', 'type': 'string'}, 'sentry.sdk.name': {'value': 'sentry.python', 'type': 'string'}, 'sentry.sdk.version': {'value': '2.69.1', 'type': 'string'}, 'process.runtime.name': {'value': 'CPython', 'type': 'string'}, 'process.runtime.version': {'value': '3.15.0', 'type': 'string'}, 'server.address': {'value': 'test-server', 'type': 'string'}, 'sentry.environment': {'value': 'production', 'type': 'string'}, 'sentry.release': {'value': '1.0.0', 'type': 'string'}}}]} == {'version': 2, 'items': [{'trace_id': , 'span_id': , 'name': 'test', 'status': 'ok', 'is_segment': True, 'start_timestamp': , 'end_timestamp': , 'attributes': }]} Common items: {'version': 2} Differing items: {'items': [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'ab46cf51317aca9e', 'name': 'test', 'status': 'ok', ...}]} != {'items': [{'trace_id': , 'span_id': , 'name': 'test', 'status': 'ok', ...}]} Full diff: { 'version': 2, 'items': [ { - 'trace_id': , - 'span_id': , + 'trace_id': '0af7651916cd43dd8448eb211c80319c', + 'span_id': 'ab46cf51317aca9e', 'name': 'test', 'status': 'ok', - 'is_segment': True, ? ^^^ + 'is_segment': False, ? ^^^^ - 'start_timestamp': , - 'end_timestamp': , + 'start_timestamp': 1788879847.477853, + 'end_timestamp': 1788879847.477892, + 'parent_span_id': 'a73363d496ec250a', - 'attributes': , ? ^^^^^^ + 'attributes': { ? ^ + 'sentry.origin': { + 'value': 'manual', + 'type': 'string', + }, + 'sentry.trace_lifecycle': { + 'value': 'stream', + 'type': 'string', + }, + 'thread.id': { + 'value': '140636404397888', + 'type': 'string', + }, + 'thread.name': { + 'value': 'MainThread', + 'type': 'string', + }, + 'sentry.segment.id': { + 'value': 'ae1a67666840f6d5', + 'type': 'string', + }, + 'sentry.segment.name': { + 'value': 'dogpark', + 'type': 'string', + }, + 'sentry.sdk.name': { + 'value': 'sentry.python', + 'type': 'string', + }, + 'sentry.sdk.version': { + 'value': '2.69.1', + 'type': 'string', + }, + 'process.runtime.name': { + 'value': 'CPython', + 'type': 'string', + }, + 'process.runtime.version': { + 'value': '3.15.0', + 'type': 'string', + }, + 'server.address': { + 'value': 'test-server', + 'type': 'string', + }, + 'sentry.environment': { + 'value': 'production', + 'type': 'string', + }, + 'sentry.release': { + 'value': '1.0.0', + 'type': 'string', + }, + }, }, ], }

Stack Trace
tests/tracing/test_span_batcher.py:435: in test_transport_format
    assert item.payload.json == {
E   AssertionError: assert {'version': 2, 'items': [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'ab46cf51317aca9e', 'name': 'test', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879847.477853, 'end_timestamp': 1788879847.477892, 'parent_span_id': 'a73363d496ec250a', 'attributes': {'sentry.origin': {'value': 'manual', 'type': 'string'}, 'sentry.trace_lifecycle': {'value': 'stream', 'type': 'string'}, 'thread.id': {'value': '140636404397888', 'type': 'string'}, 'thread.name': {'value': 'MainThread', 'type': 'string'}, 'sentry.segment.id': {'value': 'ae1a67666840f6d5', 'type': 'string'}, 'sentry.segment.name': {'value': 'dogpark', 'type': 'string'}, 'sentry.sdk.name': {'value': 'sentry.python', 'type': 'string'}, 'sentry.sdk.version': {'value': '2.69.1', 'type': 'string'}, 'process.runtime.name': {'value': 'CPython', 'type': 'string'}, 'process.runtime.version': {'value': '3.15.0', 'type': 'string'}, 'server.address': {'value': 'test-server', 'type': 'string'}, 'sentry.environment': {'value': 'production', 'type': 'string'}, 'sentry.release': {'value': '1.0.0', 'type': 'string'}}}]} == {'version': 2, 'items': [{'trace_id': <ANY>, 'span_id': <ANY>, 'name': 'test', 'status': 'ok', 'is_segment': True, 'start_timestamp': <ANY>, 'end_timestamp': <ANY>, 'attributes': <ANY>}]}
E     
E     Common items:
E     {'version': 2}
E     Differing items:
E     {'items': [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'ab46cf51317aca9e', 'name': 'test', 'status': 'ok', ...}]} != {'items': [{'trace_id': <ANY>, 'span_id': <ANY>, 'name': 'test', 'status': 'ok', ...}]}
E     
E     Full diff:
E       {
E           'version': 2,
E           'items': [
E               {
E     -             'trace_id': <ANY>,
E     -             'span_id': <ANY>,
E     +             'trace_id': '0af7651916cd43dd8448eb211c80319c',
E     +             'span_id': 'ab46cf51317aca9e',
E                   'name': 'test',
E                   'status': 'ok',
E     -             'is_segment': True,
E     ?                           ^^^
E     +             'is_segment': False,
E     ?                           ^^^^
E     -             'start_timestamp': <ANY>,
E     -             'end_timestamp': <ANY>,
E     +             'start_timestamp': 1788879847.477853,
E     +             'end_timestamp': 1788879847.477892,
E     +             'parent_span_id': 'a73363d496ec250a',
E     -             'attributes': <ANY>,
E     ?                           ^^^^^^
E     +             'attributes': {
E     ?                           ^
E     +                 'sentry.origin': {
E     +                     'value': 'manual',
E     +                     'type': 'string',
E     +                 },
E     +                 'sentry.trace_lifecycle': {
E     +                     'value': 'stream',
E     +                     'type': 'string',
E     +                 },
E     +                 'thread.id': {
E     +                     'value': '140636404397888',
E     +                     'type': 'string',
E     +                 },
E     +                 'thread.name': {
E     +                     'value': 'MainThread',
E     +                     'type': 'string',
E     +                 },
E     +                 'sentry.segment.id': {
E     +                     'value': 'ae1a67666840f6d5',
E     +                     'type': 'string',
E     +                 },
E     +                 'sentry.segment.name': {
E     +                     'value': 'dogpark',
E     +                     'type': 'string',
E     +                 },
E     +                 'sentry.sdk.name': {
E     +                     'value': 'sentry.python',
E     +                     'type': 'string',
E     +                 },
E     +                 'sentry.sdk.version': {
E     +                     'value': '2.69.1',
E     +                     'type': 'string',
E     +                 },
E     +                 'process.runtime.name': {
E     +                     'value': 'CPython',
E     +                     'type': 'string',
E     +                 },
E     +                 'process.runtime.version': {
E     +                     'value': '3.15.0',
E     +                     'type': 'string',
E     +                 },
E     +                 'server.address': {
E     +                     'value': 'test-server',
E     +                     'type': 'string',
E     +                 },
E     +                 'sentry.environment': {
E     +                     'value': 'production',
E     +                     'type': 'string',
E     +                 },
E     +                 'sentry.release': {
E     +                     'value': '1.0.0',
E     +                     'type': 'string',
E     +                 },
E     +             },
E               },
E           ],
E       }

test_trace_bucket_flushes_when_segment_ends

File: tests.tracing.test_span_batcher
Suite: py3.15t-common
Error: assert 0 == 2 + where 0 = len([])

Stack Trace
tests/tracing/test_span_batcher.py:477: in test_trace_bucket_flushes_when_segment_ends
    assert len(items) == 2
E   assert 0 == 2
E    +  where 0 = len([])

test_ignore_spans_basic

File: tests.tracing.test_span_streaming
Suite: py3.15t-common
Error: AssertionError: assert 'parent_span_id' not in {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'ae6be2a54e2602e4', 'name': 'not ignored', 'status': 'ok', 'is_segment': True, 'start_timestamp': 1788879862.351791, 'end_timestamp': 1788879862.351898, 'parent_span_id': 'b7ad6b7169203331', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.platform': 'python', 'process.command_args': ['/home/runner/work/sentry-python/sentry-python/.tox/py3.15t-common/lib/python3.15t/site-packages/pytest/main.py', '-W', 'error::pytest.PytestUnraisableExceptionWarning', 'tests', '-o', 'junit_suite_name=py3.15t-common', '--junitxml=.junitxml-py3.15t-common'], 'sentry.sdk.integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'sentry.segment.name.source': 'custom', 'sentry.segment.id': 'ae6be2a54e2602e4', 'sentry.segment.name': 'not ignored', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}

Stack Trace
tests/tracing/test_span_streaming.py:1476: in test_ignore_spans_basic
    assert "parent_span_id" not in span
E   AssertionError: assert 'parent_span_id' not in {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'ae6be2a54e2602e4', 'name': 'not ignored', 'status': 'ok', 'is_segment': True, 'start_timestamp': 1788879862.351791, 'end_timestamp': 1788879862.351898, 'parent_span_id': 'b7ad6b7169203331', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.platform': 'python', 'process.command_args': ['/home/runner/work/sentry-python/sentry-python/.tox/py3.15t-common/lib/python3.15t/site-packages/pytest/__main__.py', '-W', 'error::pytest.PytestUnraisableExceptionWarning', 'tests', '-o', 'junit_suite_name=py3.15t-common', '--junitxml=.junitxml-py3.15t-common'], 'sentry.sdk.integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'sentry.segment.name.source': 'custom', 'sentry.segment.id': 'ae6be2a54e2602e4', 'sentry.segment.name': 'not ignored', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}

test_ignore_spans_set_ignored_child_span_as_parent_explicit_parent_span

File: tests.tracing.test_span_streaming
Suite: py3.15t-common
Error: AssertionError: assert 'b7ad6b7169203331' is None + where 'b7ad6b7169203331' = <StreamedSpan(name=segment, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=8e944f3ed2087dd8, parent_span_id=b7ad6b7169203331, active=True)>._parent_span_id

Stack Trace
tests/tracing/test_span_streaming.py:1613: in test_ignore_spans_set_ignored_child_span_as_parent_explicit_parent_span
    assert segment._parent_span_id is None
E   AssertionError: assert 'b7ad6b7169203331' is None
E    +  where 'b7ad6b7169203331' = <StreamedSpan(name=segment, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=8e944f3ed2087dd8, parent_span_id=b7ad6b7169203331, active=True)>._parent_span_id

test_ignore_spans_reparenting

File: tests.tracing.test_span_streaming
Suite: py3.15t-common
Error: AssertionError: assert '8e944f3ed2087dd8' is None + where '8e944f3ed2087dd8' = <StreamedSpan(name=segment, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=a0eaa2e16fc7a21a, parent_span_id=8e944f3ed2087dd8, active=True)>._parent_span_id

Stack Trace
tests/tracing/test_span_streaming.py:1660: in test_ignore_spans_reparenting
    assert span1._parent_span_id is None
E   AssertionError: assert '8e944f3ed2087dd8' is None
E    +  where '8e944f3ed2087dd8' = <StreamedSpan(name=segment, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=a0eaa2e16fc7a21a, parent_span_id=8e944f3ed2087dd8, active=True)>._parent_span_id

test_ignored_spans_produce_client_report

File: tests.tracing.test_span_streaming
Suite: py3.15t-common
Error: AssertionError: assert not [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '8b3cee8ddfeba669', 'name': 'span1', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879863.42451, 'end_timestamp': 1788879863.424546, 'parent_span_id': '8e944f3ed2087dd8', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': '8e944f3ed2087dd8', 'sentry.segment.name': 'segment', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'b33cf6d78c8ac406', 'name': 'span2', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879863.426618, 'end_timestamp': 1788879863.426651, 'parent_span_id': '8e944f3ed2087dd8', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': '8e944f3ed2087dd8', 'sentry.segment.name': 'segment', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}]

Stack Trace
tests/tracing/test_span_streaming.py:1709: in test_ignored_spans_produce_client_report
    assert not spans
E   AssertionError: assert not [{'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': '8b3cee8ddfeba669', 'name': 'span1', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879863.42451, 'end_timestamp': 1788879863.424546, 'parent_span_id': '8e944f3ed2087dd8', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': '8e944f3ed2087dd8', 'sentry.segment.name': 'segment', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}, {'trace_id': '0af7651916cd43dd8448eb211c80319c', 'span_id': 'b33cf6d78c8ac406', 'name': 'span2', 'status': 'ok', 'is_segment': False, 'start_timestamp': 1788879863.426618, 'end_timestamp': 1788879863.426651, 'parent_span_id': '8e944f3ed2087dd8', 'attributes': {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': '8e944f3ed2087dd8', 'sentry.segment.name': 'segment', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}}]

test_segment_span_has_profiler_id

File: tests.tracing.test_span_streaming
Suite: py3.15t-common
Error: AssertionError: assert 'sentry.profiler_id' in {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': '8e944f3ed2087dd8', 'sentry.segment.name': 'segment', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}

Stack Trace
tests/tracing/test_span_streaming.py:1744: in test_segment_span_has_profiler_id
    assert "sentry.profiler_id" in spans[0]["attributes"]
E   AssertionError: assert 'sentry.profiler_id' in {'sentry.origin': 'manual', 'sentry.trace_lifecycle': 'stream', 'thread.id': '140636404397888', 'thread.name': 'MainThread', 'sentry.segment.id': '8e944f3ed2087dd8', 'sentry.segment.name': 'segment', 'sentry.sdk.name': 'sentry.python', 'sentry.sdk.version': '2.69.1', 'process.runtime.name': 'CPython', 'process.runtime.version': '3.15.0', 'server.address': 'runnervm9xg2d', 'sentry.environment': 'production', 'sentry.release': '207ad4f8f3b87507ebd7a2920289c9f555246e9d'}

test_profile_stops_when_segment_ends

File: tests.tracing.test_span_streaming
Suite: py3.15t-common
Error: assert None is not None + where None = <StreamedSpan(name=segment, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=bde3bc34ce2b98f8, parent_span_id=8e944f3ed2087dd8, active=True)>._continuous_profile

Stack Trace
tests/tracing/test_span_streaming.py:1808: in test_profile_stops_when_segment_ends
    assert span._continuous_profile is not None
E   assert None is not None
E    +  where None = <StreamedSpan(name=segment, trace_id=0af7651916cd43dd8448eb211c80319c, span_id=bde3bc34ce2b98f8, parent_span_id=8e944f3ed2087dd8, active=True)>._continuous_profile

test_default_attributes

File: tests.tracing.test_span_streaming
Suite: py3.15t-common
Error: AssertionError: assert {'sentry.origin': {'value': 'manual', 'type': 'string'}, 'sentry.trace_lifecycle': {'value': 'stream', 'type': 'string'}, 'thread.id': {'value': '140636404397888', 'type': 'string'}, 'thread.name': {'value': 'MainThread', 'type': 'string'}, 'sentry.segment.id': {'value': '8e944f3ed2087dd8', 'type': 'string'}, 'sentry.segment.name': {'value': 'segment', 'type': 'string'}, 'sentry.sdk.name': {'value': 'sentry.python', 'type': 'string'}, 'sentry.sdk.version': {'value': '2.69.1', 'type': 'string'}, 'process.runtime.name': {'value': 'CPython', 'type': 'string'}, 'process.runtime.version': {'value': '3.15.0', 'type': 'string'}, 'server.address': {'value': 'test-server', 'type': 'string'}, 'sentry.environment': {'value': 'production', 'type': 'string'}, 'sentry.release': {'value': '1.0.0', 'type': 'string'}} == {'thread.id': {'value': , 'type': 'string'}, 'thread.name': {'value': 'MainThread', 'type': 'string'}, 'process.command_args': {'value': , 'type': 'array'}, 'sentry.segment.id': {'value': , 'type': 'string'}, 'sentry.segment.name': {'value': 'test', 'type': 'string'}, 'sentry.sdk.name': {'value': 'sentry.python', 'type': 'string'}, 'sentry.sdk.version': {'value': , 'type': 'string'}, 'server.address': {'value': 'test-server', 'type': 'string'}, 'sentry.environment': {'value': 'production', 'type': 'string'}, 'sentry.platform': {'value': 'python', 'type': 'string'}, 'sentry.release': {'value': '1.0.0', 'type': 'string'}, 'sentry.dist': {'value': '1.0', 'type': 'string'}, 'sentry.origin': {'value': 'manual', 'type': 'string'}, 'sentry.sdk.integrations': {'value': , 'type': 'array'}, 'sentry.trace_lifecycle': {'value': 'stream', 'type': 'string'}, 'sentry.segment.name.source': {'value': 'custom', 'type': 'string'}, 'process.runtime.name': {'type': 'string', 'value': }, 'process.runtime.version': {'type': 'string', 'value': }} Common items: {'process.runtime.name': {'type': 'string', 'value': 'CPython'}, 'process.runtime.version': {'type': 'string', 'value': '3.15.0'}, 'sentry.environment': {'type': 'string', 'value': 'production'}, 'sentry.origin': {'type': 'string', 'value': 'manual'}, 'sentry.release': {'type': 'string', 'value': '1.0.0'}, 'sentry.sdk.name': {'type': 'string', 'value': 'sentry.python'}, 'sentry.sdk.version': {'type': 'string', 'value': '2.69.1'}, 'sentry.segment.id': {'type': 'string', 'value': '8e944f3ed2087dd8'}, 'sentry.trace_lifecycle': {'type': 'string', 'value': 'stream'}, 'server.address': {'type': 'string', 'value': 'test-server'}, 'thread.id': {'type': 'string', 'value': '140636404397888'}, 'thread.name': {'type': 'string', 'value': 'MainThread'}} Differing items: {'sentry.segment.name': {'value': 'segment', 'type': 'string'}} != {'sentry.segment.name': {'value': 'test', 'type': 'string'}} Right contains 5 more items: {'process.command_args': {'type': 'array', 'value': }, 'sentry.dist': {'type': 'string', 'value': '1.0'}, 'sentry.platform': {'type': 'string', 'value': 'python'}, 'sentry.sdk.integrations': {'type': 'array', 'value': }, 'sentry.segment.name.source': {'type': 'string', 'value': 'custom'}} Full diff: { + 'sentry.origin': { + 'value': 'manual', + 'type': 'string', + }, + 'sentry.trace_lifecycle': { + 'value': 'stream', + 'type': 'string', + }, 'thread.id': { - 'value': , + 'value': '140636404397888', 'type': 'string', }, 'thread.name': { 'value': 'MainThread', 'type': 'string', }, - 'process.command_args': { - 'value': , - 'type': 'array', - }, 'sentry.segment.id': { - 'value': , + 'value': '8e944f3ed2087dd8', 'type': 'string', }, 'sentry.segment.name': { - 'value': 'test', ? ^ ^ + 'value': 'segment', ? ^ ^^^^ 'type': 'string', }, 'sentry.sdk.name': { 'value': 'sentry.python', 'type': 'string', }, 'sentry.sdk.version': { - 'value': , + 'value': '2.69.1', + 'type': 'string', + }, + 'process.runtime.name': { + 'value': 'CPython', + 'type': 'string', + }, + 'process.runtime.version': { + 'value': '3.15.0', 'type': 'string', }, 'server.address': { 'value': 'test-server', 'type': 'string', }, 'sentry.environment': { 'value': 'production', 'type': 'string', }, - 'sentry.platform': { - 'value': 'python', - 'type': 'string', - }, 'sentry.release': { 'value': '1.0.0', 'type': 'string', }, - 'sentry.dist': { - 'value': '1.0', - 'type': 'string', - }, - 'sentry.origin': { - 'value': 'manual', - 'type': 'string', - }, - 'sentry.sdk.integrations': { - 'value': , - 'type': 'array', - }, - 'sentry.trace_lifecycle': { - 'value': 'stream', - 'type': 'string', - }, - 'sentry.segment.name.source': { - 'value': 'custom', - 'type': 'string', - }, - 'process.runtime.name': { - 'type': 'string', - 'value': , - }, - 'process.runtime.version': { - 'type': 'string', - 'value': , - }, }

Stack Trace
tests/tracing/test_span_streaming.py:1843: in test_default_attributes
    assert item.payload.json["items"][0]["attributes"] == {
E   AssertionError: assert {'sentry.origin': {'value': 'manual', 'type': 'string'}, 'sentry.trace_lifecycle': {'value': 'stream', 'type': 'string'}, 'thread.id': {'value': '140636404397888', 'type': 'string'}, 'thread.name': {'value': 'MainThread', 'type': 'string'}, 'sentry.segment.id': {'value': '8e944f3ed2087dd8', 'type': 'string'}, 'sentry.segment.name': {'value': 'segment', 'type': 'string'}, 'sentry.sdk.name': {'value': 'sentry.python', 'type': 'string'}, 'sentry.sdk.version': {'value': '2.69.1', 'type': 'string'}, 'process.runtime.name': {'value': 'CPython', 'type': 'string'}, 'process.runtime.version': {'value': '3.15.0', 'type': 'string'}, 'server.address': {'value': 'test-server', 'type': 'string'}, 'sentry.environment': {'value': 'production', 'type': 'string'}, 'sentry.release': {'value': '1.0.0', 'type': 'string'}} == {'thread.id': {'value': <ANY>, 'type': 'string'}, 'thread.name': {'value': 'MainThread', 'type': 'string'}, 'process.command_args': {'value': <ANY>, 'type': 'array'}, 'sentry.segment.id': {'value': <ANY>, 'type': 'string'}, 'sentry.segment.name': {'value': 'test', 'type': 'string'}, 'sentry.sdk.name': {'value': 'sentry.python', 'type': 'string'}, 'sentry.sdk.version': {'value': <ANY>, 'type': 'string'}, 'server.address': {'value': 'test-server', 'type': 'string'}, 'sentry.environment': {'value': 'production', 'type': 'string'}, 'sentry.platform': {'value': 'python', 'type': 'string'}, 'sentry.release': {'value': '1.0.0', 'type': 'string'}, 'sentry.dist': {'value': '1.0', 'type': 'string'}, 'sentry.origin': {'value': 'manual', 'type': 'string'}, 'sentry.sdk.integrations': {'value': <ANY>, 'type': 'array'}, 'sentry.trace_lifecycle': {'value': 'stream', 'type': 'string'}, 'sentry.segment.name.source': {'value': 'custom', 'type': 'string'}, 'process.runtime.name': {'type': 'string', 'value': <ANY>}, 'process.runtime.version': {'type': 'string', 'value': <ANY>}}
E     
E     Common items:
E     {'process.runtime.name': {'type': 'string', 'value': 'CPython'},
E      'process.runtime.version': {'type': 'string', 'value': '3.15.0'},
E      'sentry.environment': {'type': 'string', 'value': 'production'},
E      'sentry.origin': {'type': 'string', 'value': 'manual'},
E      'sentry.release': {'type': 'string', 'value': '1.0.0'},
E      'sentry.sdk.name': {'type': 'string', 'value': 'sentry.python'},
E      'sentry.sdk.version': {'type': 'string', 'value': '2.69.1'},
E      'sentry.segment.id': {'type': 'string', 'value': '8e944f3ed2087dd8'},
E      'sentry.trace_lifecycle': {'type': 'string', 'value': 'stream'},
E      'server.address': {'type': 'string', 'value': 'test-server'},
E      'thread.id': {'type': 'string', 'value': '140636404397888'},
E      'thread.name': {'type': 'string', 'value': 'MainThread'}}
E     Differing items:
E     {'sentry.segment.name': {'value': 'segment', 'type': 'string'}} != {'sentry.segment.name': {'value': 'test', 'type': 'string'}}
E     Right contains 5 more items:
E     {'process.command_args': {'type': 'array', 'value': <ANY>},
E      'sentry.dist': {'type': 'string', 'value': '1.0'},
E      'sentry.platform': {'type': 'string', 'value': 'python'},
E      'sentry.sdk.integrations': {'type': 'array', 'value': <ANY>},
E      'sentry.segment.name.source': {'type': 'string', 'value': 'custom'}}
E     
E     Full diff:
E       {
E     +     'sentry.origin': {
E     +         'value': 'manual',
E     +         'type': 'string',
E     +     },
E     +     'sentry.trace_lifecycle': {
E     +         'value': 'stream',
E     +         'type': 'string',
E     +     },
E           'thread.id': {
E     -         'value': <ANY>,
E     +         'value': '140636404397888',
E               'type': 'string',
E           },
E           'thread.name': {
E               'value': 'MainThread',
E               'type': 'string',
E           },
E     -     'process.command_args': {
E     -         'value': <ANY>,
E     -         'type': 'array',
E     -     },
E           'sentry.segment.id': {
E     -         'value': <ANY>,
E     +         'value': '8e944f3ed2087dd8',
E               'type': 'string',
E           },
E           'sentry.segment.name': {
E     -         'value': 'test',
E     ?                   ^ ^
E     +         'value': 'segment',
E     ?                   ^ ^^^^
E               'type': 'string',
E           },
E           'sentry.sdk.name': {
E               'value': 'sentry.python',
E               'type': 'string',
E           },
E           'sentry.sdk.version': {
E     -         'value': <ANY>,
E     +         'value': '2.69.1',
E     +         'type': 'string',
E     +     },
E     +     'process.runtime.name': {
E     +         'value': 'CPython',
E     +         'type': 'string',
E     +     },
E     +     'process.runtime.version': {
E     +         'value': '3.15.0',
E               'type': 'string',
E           },
E           'server.address': {
E               'value': 'test-server',
E               'type': 'string',
E           },
E           'sentry.environment': {
E               'value': 'production',
E               'type': 'string',
E           },
E     -     'sentry.platform': {
E     -         'value': 'python',
E     -         'type': 'string',
E     -     },
E           'sentry.release': {
E               'value': '1.0.0',
E               'type': 'string',
E           },
E     -     'sentry.dist': {
E     -         'value': '1.0',
E     -         'type': 'string',
E     -     },
E     -     'sentry.origin': {
E     -         'value': 'manual',
E     -         'type': 'string',
E     -     },
E     -     'sentry.sdk.integrations': {
E     -         'value': <ANY>,
E     -         'type': 'array',
E     -     },
E     -     'sentry.trace_lifecycle': {
E     -         'value': 'stream',
E     -         'type': 'string',
E     -     },
E     -     'sentry.segment.name.source': {
E     -         'value': 'custom',
E     -         'type': 'string',
E     -     },
E     -     'process.runtime.name': {
E     -         'type': 'string',
E     -         'value': <ANY>,
E     -     },
E     -     'process.runtime.version': {
E     -         'type': 'string',
E     -         'value': <ANY>,
E     -     },
E       }

✅ Patch coverage is 100.00%. Project has 2513 uncovered lines.
✅ Project coverage is 90.25%. Comparing base (60d37b6) to head (83c0815).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
+ Coverage    90.24%    90.25%    +0.01%
==========================================
  Files          193       193         —
  Lines        25774     25772        -2
  Branches      9514      9514         —
==========================================
+ Hits         23259     23259         —
- Misses        2515      2513        -2
- Partials      1433      1434        +1

Generated by Codecov Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant