You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 }
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 }
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 }
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 }
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
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')
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
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
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
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
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
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 }
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
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
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add streaming tests, as we only keep these in the major.
Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)