Skip to content

Conversation

alexander-alderman-webb
Copy link
Contributor

Description

Issues

Reminders

Copy link

codecov bot commented Oct 20, 2025

❌ 52 Tests Failed:

Tests completed Failed Passed Skipped
3223 52 3171 208
View the top 3 failed test(s) by shortest run time
tests.new_scopes_compat.test_new_scopes_compat_event::test_event3
Stack Traces | 0.026s run time
tests/new_scopes_compat/test_new_scopes_compat_event.py:424: in test_event3
    assert error == expected_error(trx, span)
E   assert {'_meta': {},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': '2025-10-20T14:59:29.002345Z',\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'\n                                   '[GCC 10.2.1 20210110]',\n                          'name': 'CPython',\n                          'version': '3.6.15'},\n              'trace': {'data': {'thread.id': '139650522523456',\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': '9c4e64595fd7cb43',\n                        'span_id': 'ad14b411b519dddb',\n                        'trace_id': '811c085ef64a4063b09fb47769b8aa9b'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': 'c44297e91ea4454db2a341a830b48df9',\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': 244,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': "ValueError('This "\n                                                                     'is a '\n                                                                     'test '\n                                                                     "exception',)"}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': {'anyio': '3.6.2',\n             'asttokens': '2.4.1',\n             'attrs': '22.2.0',\n             'brotli': '1.1.0',\n             'certifi': '2025.4.26',\n             'charset-normalizer': '2.0.12',\n             'colorama': '0.4.5',\n             'contextvars': '2.4',\n             'coverage': '6.2',\n             'dataclasses': '0.8',\n             'docker': '5.0.3',\n             'docopt': '0.6.2',\n             'executing': '2.0.1',\n             'h11': '0.12.0',\n             'h2': '4.1.0',\n             'hpack': '4.0.0',\n             'httpcore': '0.14.7',\n             'hyperframe': '6.0.1',\n             'idna': '3.10',\n             'immutables': '0.19',\n             'importlib-metadata': '4.8.3',\n             'iniconfig': '1.1.1',\n             'jsonschema': '3.2.0',\n             'packaging': '21.3',\n             'pip': '21.3.1',\n             'pluggy': '1.0.0',\n             'py': '1.11.0',\n             'pyparsing': '3.1.4',\n             'pyrsistent': '0.18.0',\n             'pysocks': '1.7.1',\n             'pytest': '6.2.5',\n             'pytest-asyncio': '0.16.0',\n             'pytest-cov': '4.0.0',\n             'pytest-forked': '1.4.0',\n             'pytest-localserver': '0.9.0.post0',\n             'pytest-watch': '4.2.0',\n             'requests': '2.27.1',\n             'responses': '0.17.0',\n             'sentry-sdk': '2.42.1',\n             'setuptools': '59.6.0',\n             'six': '1.17.0',\n             'sniffio': '1.2.0',\n             'socksio': '1.0.0',\n             'toml': '0.10.2',\n             'tomli': '1.2.3',\n             'typing-extensions': '4.1.1',\n             'urllib3': '1.26.20',\n             'watchdog': '2.3.1',\n             'websocket-client': '1.3.1',\n             'werkzeug': '2.0.3',\n             'wheel': '0.37.1',\n             'zipp': '3.6.0'},\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],\n         'version': '2.42.1'},\n 'server_name': '88fcdc08b64f',\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': '2025-10-20T14:59:29.002685Z',\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}} == {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',\n                                                                           's']]}},\n                     'sys.argv': {'': {'rem': [['!config', 's']]}}},\n           'user': {'ip_address': {'': {'rem': [['!config', 's']]}}}},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': <ANY>,\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': <ANY>, 'name': 'CPython', 'version': <ANY>},\n              'trace': {'data': {'thread.id': <ANY>,\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': '9c4e64595fd7cb43',\n                        'span_id': 'ad14b411b519dddb',\n                        'trace_id': '811c085ef64a4063b09fb47769b8aa9b'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': <ANY>,\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': <ANY>,\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': <ANY>,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': <ANY>}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': <ANY>,\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': <ANY>}],\n         'version': <ANY>},\n 'server_name': <ANY>,\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': <ANY>,\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': 'custom'},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}}
E     Common items:
E     {'breadcrumbs': {'values': [{'category': 'error-level',
E                                  'data': {'breadcrumb2': 'somedata'},
E                                  'level': 'error',
E                                  'message': 'Authenticated user %s',
E                                  'timestamp': '2025-10-20T14:59:29.002345Z',
E                                  'type': 'default'}]},
E      'contexts': {'character': {'age': 19,
E                                 'attack_type': 'melee',
E                                 'name': 'Mighty Fighter changed by before_send'},
E                   'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E                                        '[GCC 10.2.1 20210110]',
E                               'name': 'CPython',
E                               'version': '3.6.15'},
E                   'trace': {'data': {'thread.id': '139650522523456',
E                                      'thread.name': 'MainThread'},
E                             'description': None,
E                             'op': 'test_span',
E                             'origin': 'manual',
E                             'parent_span_id': '9c4e64595fd7cb43',
E                             'span_id': 'ad14b411b519dddb',
E                             'trace_id': '811c085ef64a4063b09fb47769b8aa9b'}},
E      'environment': 'checking-compatibility-with-sdk1',
E      'event_id': 'c44297e91ea4454db2a341a830b48df9',
E      'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},
E                                'module': None,
E                                'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'context_line': '        '
E                                                                           'raise '
E                                                                           'ValueError("This '
E                                                                           'is a '
E                                                                           'test '
E                                                                           'exception")',
E                                                           'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'function': '_faulty_function',
E                                                           'in_app': True,
E                                                           'lineno': 244,
E                                                           'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                           'post_context': ['    '
E                                                                            'except '
E                                                                            'ValueError '
E                                                                            'as ex:',
E                                                                            '        '
E                                                                            'sentry_sdk.capture_exception(ex)',
E                                                                            '',
E                                                                            '',
E                                                                            'def '
E                                                                            '_test_before_send(event, '
E                                                                            'hint):'],
E                                                           'pre_context': ['    '
E                                                                           'return '
E                                                                           'create_expected_transaction_event',
E                                                                           '',
E                                                                           '',
E                                                                           'def '
E                                                                           '_faulty_function():',
E                                                                           '    '
E                                                                           'try:'],
E                                                           'vars': {'ex': "ValueError('This "
E                                                                          'is a '
E                                                                          'test '
E                                                                          "exception',)"}}]},
E                                'type': 'ValueError',
E                                'value': 'This is a test exception'}]},
E      'extra': {'extra1': 'extra1_value',
E                'extra2': 'extra2_value',
E                'should_be_removed_by_event_scrubber': '[Filtered]',
E                'sys.argv': '[Filtered]'},
E      'level': 'warning-X',
E      'modules': {'anyio': '3.6.2',
E                  'asttokens': '2.4.1',
E                  'attrs': '22.2.0',
E                  'brotli': '1.1.0',
E                  'certifi': '2025.4.26',
E                  'charset-normalizer': '2.0.12',
E                  'colorama': '0.4.5',
E                  'contextvars': '2.4',
E                  'coverage': '6.2',
E                  'dataclasses': '0.8',
E                  'docker': '5.0.3',
E                  'docopt': '0.6.2',
E                  'executing': '2.0.1',
E                  'h11': '0.12.0',
E                  'h2': '4.1.0',
E                  'hpack': '4.0.0',
E                  'httpcore': '0.14.7',
E                  'hyperframe': '6.0.1',
E                  'idna': '3.10',
E                  'immutables': '0.19',
E                  'importlib-metadata': '4.8.3',
E                  'iniconfig': '1.1.1',
E                  'jsonschema': '3.2.0',
E                  'packaging': '21.3',
E                  'pip': '21.3.1',
E                  'pluggy': '1.0.0',
E                  'py': '1.11.0',
E                  'pyparsing': '3.1.4',
E                  'pyrsistent': '0.18.0',
E                  'pysocks': '1.7.1',
E                  'pytest': '6.2.5',
E                  'pytest-asyncio': '0.16.0',
E                  'pytest-cov': '4.0.0',
E                  'pytest-forked': '1.4.0',
E                  'pytest-localserver': '0.9.0.post0',
E                  'pytest-watch': '4.2.0',
E                  'requests': '2.27.1',
E                  'responses': '0.17.0',
E                  'sentry-sdk': '2.42.1',
E                  'setuptools': '59.6.0',
E                  'six': '1.17.0',
E                  'sniffio': '1.2.0',
E                  'socksio': '1.0.0',
E                  'toml': '0.10.2',
E                  'tomli': '1.2.3',
E                  'typing-extensions': '4.1.1',
E                  'urllib3': '1.26.20',
E                  'watchdog': '2.3.1',
E                  'websocket-client': '1.3.1',
E                  'werkzeug': '2.0.3',
E                  'wheel': '0.37.1',
E                  'zipp': '3.6.0'},
E      'platform': 'python',
E      'release': '0.1.2rc3',
E      'sdk': {'integrations': ['argv',
E                               'atexit',
E                               'dedupe',
E                               'excepthook',
E                               'logging',
E                               'modules',
E                               'stdlib',
E                               'threading'],
E              'name': 'sentry.python',
E              'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],
E              'version': '2.42.1'},
E      'server_name': '88fcdc08b64f',
E      'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},
E      'timestamp': '2025-10-20T14:59:29.002685Z',
E      'transaction': 'test_transaction',
E      'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E      'user': {'email': '[email protected]',
E               'id': '123',
E               'ip_address': '[Filtered]'}}
E     Differing items:
E     {'_meta': {}} != {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [[...]]}}, 'sys.argv': {'': {'rem': [[...]]}}}, 'user': {'ip_address': {'': {'rem': [[...]]}}}}}
E     Full diff:
E       {
E     +  '_meta': {},
E     -  '_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',
E     -                                                                            's']]}},
E     -                      'sys.argv': {'': {'rem': [['!config',
E     -                                                 's']]}}},
E     -            'user': {'ip_address': {'': {'rem': [['!config',
E     -                                                  's']]}}}},
E        'breadcrumbs': {'values': [{'category': 'error-level',
E                                    'data': {'breadcrumb2': 'somedata'},
E                                    'level': 'error',
E                                    'message': 'Authenticated user %s',
E     -                              'timestamp': <ANY>,
E     +                              'timestamp': '2025-10-20T14:59:29.002345Z',
E                                    'type': 'default'}]},
E        'contexts': {'character': {'age': 19,
E                                   'attack_type': 'melee',
E                                   'name': 'Mighty Fighter changed by before_send'},
E     -               'runtime': {'build': <ANY>,
E     +               'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E     +                                    '[GCC 10.2.1 20210110]',
E                                 'name': 'CPython',
E     -                           'version': <ANY>},
E     ?                                      ^^^^^
E     +                           'version': '3.6.15'},
E     ?                                      ^^^^^^^^
E     -               'trace': {'data': {'thread.id': <ANY>,
E     ?                                               ^^^^^
E     +               'trace': {'data': {'thread.id': '139650522523456',
E     ?                                               ^^^^^^^^^^^^^^^^^
E                                        'thread.name': 'MainThread'},
E                               'description': None,
E                               'op': 'test_span',
E                               'origin': 'manual',
E                               'parent_span_id': '9c4e64595fd7cb43',
E                               'span_id': 'ad14b411b519dddb',
E                               'trace_id': '811c085ef64a4063b09fb47769b8aa9b'}},
E        'environment': 'checking-compatibility-with-sdk1',
E     -  'event_id': <ANY>,
E     +  'event_id': 'c44297e91ea4454db2a341a830b48df9',
E        'exception': {'values': [{'mechanism': {'handled': True,
E                                                'type': 'generic'},
E                                  'module': None,
E     -                            'stacktrace': {'frames': [{'abs_path': <ANY>,
E     +                            'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'context_line': '        '
E                                                                             'raise '
E                                                                             'ValueError("This '
E                                                                             'is a '
E                                                                             'test '
E                                                                             'exception")',
E                                                             'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'function': '_faulty_function',
E                                                             'in_app': True,
E     -                                                       'lineno': <ANY>,
E     ?                                                                 ^^^^^
E     +                                                       'lineno': 244,
E     ?                                                                 ^^^
E                                                             'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                             'post_context': ['    '
E                                                                              'except '
E                                                                              'ValueError '
E                                                                              'as ex:',
E                                                                              '        '
E                                                                              'sentry_sdk.capture_exception(ex)',
E                                                                              '',
E                                                                              '',
E                                                                              'def '
E                                                                              '_test_before_send(event, '
E                                                                              'hint):'],
E                                                             'pre_context': ['    '
E                                                                             'return '
E                                                                             'create_expected_transaction_event',
E                                                                             '',
E                                                                             '',
E                                                                             'def '
E                                                                             '_faulty_function():',
E                                                                             '    '
E                                                                             'try:'],
E     -                                                       'vars': {'ex': <ANY>}}]},
E     ?                                                                      ^^^^^^^^^^
E     +                                                       'vars': {'ex': "ValueError('This "
E     ?                                                                      ^^^^^^^^^^^^^^^^^^^
E     +                                                                      'is a '
E     +                                                                      'test '
E     +                                                                      "exception',)"}}]},
E                                  'type': 'ValueError',
E                                  'value': 'This is a test exception'}]},
E        'extra': {'extra1': 'extra1_value',
E                  'extra2': 'extra2_value',
E                  'should_be_removed_by_event_scrubber': '[Filtered]',
E                  'sys.argv': '[Filtered]'},
E        'level': 'warning-X',
E     -  'modules': <ANY>,
E     +  'modules': {'anyio': '3.6.2',
E     +              'asttokens': '2.4.1',
E     +              'attrs': '22.2.0',
E     +              'brotli': '1.1.0',
E     +              'certifi': '2025.4.26',
E     +              'charset-normalizer': '2.0.12',
E     +              'colorama': '0.4.5',
E     +              'contextvars': '2.4',
E     +              'coverage': '6.2',
E     +              'dataclasses': '0.8',
E     +              'docker': '5.0.3',
E     +              'docopt': '0.6.2',
E     +              'executing': '2.0.1',
E     +              'h11': '0.12.0',
E     +              'h2': '4.1.0',
E     +              'hpack': '4.0.0',
E     +              'httpcore': '0.14.7',
E     +              'hyperframe': '6.0.1',
E     +              'idna': '3.10',
E     +              'immutables': '0.19',
E     +              'importlib-metadata': '4.8.3',
E     +              'iniconfig': '1.1.1',
E     +              'jsonschema': '3.2.0',
E     +              'packaging': '21.3',
E     +              'pip': '21.3.1',
E     +              'pluggy': '1.0.0',
E     +              'py': '1.11.0',
E     +              'pyparsing': '3.1.4',
E     +              'pyrsistent': '0.18.0',
E     +              'pysocks': '1.7.1',
E     +              'pytest': '6.2.5',
E     +              'pytest-asyncio': '0.16.0',
E     +              'pytest-cov': '4.0.0',
E     +              'pytest-forked': '1.4.0',
E     +              'pytest-localserver': '0.9.0.post0',
E     +              'pytest-watch': '4.2.0',
E     +              'requests': '2.27.1',
E     +              'responses': '0.17.0',
E     +              'sentry-sdk': '2.42.1',
E     +              'setuptools': '59.6.0',
E     +              'six': '1.17.0',
E     +              'sniffio': '1.2.0',
E     +              'socksio': '1.0.0',
E     +              'toml': '0.10.2',
E     +              'tomli': '1.2.3',
E     +              'typing-extensions': '4.1.1',
E     +              'urllib3': '1.26.20',
E     +              'watchdog': '2.3.1',
E     +              'websocket-client': '1.3.1',
E     +              'werkzeug': '2.0.3',
E     +              'wheel': '0.37.1',
E     +              'zipp': '3.6.0'},
E        'platform': 'python',
E        'release': '0.1.2rc3',
E        'sdk': {'integrations': ['argv',
E                                 'atexit',
E                                 'dedupe',
E                                 'excepthook',
E                                 'logging',
E                                 'modules',
E                                 'stdlib',
E                                 'threading'],
E                'name': 'sentry.python',
E                'packages': [{'name': 'pypi:sentry-sdk',
E     -                        'version': <ANY>}],
E     ?                                   ^^^^^
E     +                        'version': '2.42.1'}],
E     ?                                   ^^^^^^^^
E     -          'version': <ANY>},
E     ?                     ^^^^^
E     +          'version': '2.42.1'},
E     ?                     ^^^^^^^^
E     -  'server_name': <ANY>,
E     +  'server_name': '88fcdc08b64f',
E        'tags': {'tag1': 'tag1_value',
E                 'tag2': 'tag2_value'},
E     -  'timestamp': <ANY>,
E     +  'timestamp': '2025-10-20T14:59:29.002685Z',
E        'transaction': 'test_transaction',
E     -  'transaction_info': {'source': 'custom'},
E     +  'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E     ?                                 +++++++++++++++++++++++++++        +
E        'user': {'email': '[email protected]',
E                 'id': '123',
E                 'ip_address': '[Filtered]'},
E       }
tests.new_scopes_compat.test_new_scopes_compat_event::test_event4
Stack Traces | 0.026s run time
tests/new_scopes_compat/test_new_scopes_compat_event.py:460: in test_event4
    assert error == expected_error(trx, span)
E   assert {'_meta': {},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': '2025-10-20T14:59:29.037146Z',\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'\n                                   '[GCC 10.2.1 20210110]',\n                          'name': 'CPython',\n                          'version': '3.6.15'},\n              'trace': {'data': {'thread.id': '139650522523456',\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': 'b53748f63d60207e',\n                        'span_id': '83f16ce5c82370ac',\n                        'trace_id': '9bad460f4fe94b22ac15f2a45d346eaf'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': 'b474946afe1d4bc28cb6d88459a991cb',\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': 244,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': "ValueError('This "\n                                                                     'is a '\n                                                                     'test '\n                                                                     "exception',)"}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': {'anyio': '3.6.2',\n             'asttokens': '2.4.1',\n             'attrs': '22.2.0',\n             'brotli': '1.1.0',\n             'certifi': '2025.4.26',\n             'charset-normalizer': '2.0.12',\n             'colorama': '0.4.5',\n             'contextvars': '2.4',\n             'coverage': '6.2',\n             'dataclasses': '0.8',\n             'docker': '5.0.3',\n             'docopt': '0.6.2',\n             'executing': '2.0.1',\n             'h11': '0.12.0',\n             'h2': '4.1.0',\n             'hpack': '4.0.0',\n             'httpcore': '0.14.7',\n             'hyperframe': '6.0.1',\n             'idna': '3.10',\n             'immutables': '0.19',\n             'importlib-metadata': '4.8.3',\n             'iniconfig': '1.1.1',\n             'jsonschema': '3.2.0',\n             'packaging': '21.3',\n             'pip': '21.3.1',\n             'pluggy': '1.0.0',\n             'py': '1.11.0',\n             'pyparsing': '3.1.4',\n             'pyrsistent': '0.18.0',\n             'pysocks': '1.7.1',\n             'pytest': '6.2.5',\n             'pytest-asyncio': '0.16.0',\n             'pytest-cov': '4.0.0',\n             'pytest-forked': '1.4.0',\n             'pytest-localserver': '0.9.0.post0',\n             'pytest-watch': '4.2.0',\n             'requests': '2.27.1',\n             'responses': '0.17.0',\n             'sentry-sdk': '2.42.1',\n             'setuptools': '59.6.0',\n             'six': '1.17.0',\n             'sniffio': '1.2.0',\n             'socksio': '1.0.0',\n             'toml': '0.10.2',\n             'tomli': '1.2.3',\n             'typing-extensions': '4.1.1',\n             'urllib3': '1.26.20',\n             'watchdog': '2.3.1',\n             'websocket-client': '1.3.1',\n             'werkzeug': '2.0.3',\n             'wheel': '0.37.1',\n             'zipp': '3.6.0'},\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],\n         'version': '2.42.1'},\n 'server_name': '88fcdc08b64f',\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': '2025-10-20T14:59:29.037480Z',\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}} == {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',\n                                                                           's']]}},\n                     'sys.argv': {'': {'rem': [['!config', 's']]}}},\n           'user': {'ip_address': {'': {'rem': [['!config', 's']]}}}},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': <ANY>,\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': <ANY>, 'name': 'CPython', 'version': <ANY>},\n              'trace': {'data': {'thread.id': <ANY>,\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': 'b53748f63d60207e',\n                        'span_id': '83f16ce5c82370ac',\n                        'trace_id': '9bad460f4fe94b22ac15f2a45d346eaf'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': <ANY>,\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': <ANY>,\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': <ANY>,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': <ANY>}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': <ANY>,\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': <ANY>}],\n         'version': <ANY>},\n 'server_name': <ANY>,\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': <ANY>,\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': 'custom'},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}}
E     Common items:
E     {'breadcrumbs': {'values': [{'category': 'error-level',
E                                  'data': {'breadcrumb2': 'somedata'},
E                                  'level': 'error',
E                                  'message': 'Authenticated user %s',
E                                  'timestamp': '2025-10-20T14:59:29.037146Z',
E                                  'type': 'default'}]},
E      'contexts': {'character': {'age': 19,
E                                 'attack_type': 'melee',
E                                 'name': 'Mighty Fighter changed by before_send'},
E                   'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E                                        '[GCC 10.2.1 20210110]',
E                               'name': 'CPython',
E                               'version': '3.6.15'},
E                   'trace': {'data': {'thread.id': '139650522523456',
E                                      'thread.name': 'MainThread'},
E                             'description': None,
E                             'op': 'test_span',
E                             'origin': 'manual',
E                             'parent_span_id': 'b53748f63d60207e',
E                             'span_id': '83f16ce5c82370ac',
E                             'trace_id': '9bad460f4fe94b22ac15f2a45d346eaf'}},
E      'environment': 'checking-compatibility-with-sdk1',
E      'event_id': 'b474946afe1d4bc28cb6d88459a991cb',
E      'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},
E                                'module': None,
E                                'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'context_line': '        '
E                                                                           'raise '
E                                                                           'ValueError("This '
E                                                                           'is a '
E                                                                           'test '
E                                                                           'exception")',
E                                                           'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'function': '_faulty_function',
E                                                           'in_app': True,
E                                                           'lineno': 244,
E                                                           'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                           'post_context': ['    '
E                                                                            'except '
E                                                                            'ValueError '
E                                                                            'as ex:',
E                                                                            '        '
E                                                                            'sentry_sdk.capture_exception(ex)',
E                                                                            '',
E                                                                            '',
E                                                                            'def '
E                                                                            '_test_before_send(event, '
E                                                                            'hint):'],
E                                                           'pre_context': ['    '
E                                                                           'return '
E                                                                           'create_expected_transaction_event',
E                                                                           '',
E                                                                           '',
E                                                                           'def '
E                                                                           '_faulty_function():',
E                                                                           '    '
E                                                                           'try:'],
E                                                           'vars': {'ex': "ValueError('This "
E                                                                          'is a '
E                                                                          'test '
E                                                                          "exception',)"}}]},
E                                'type': 'ValueError',
E                                'value': 'This is a test exception'}]},
E      'extra': {'extra1': 'extra1_value',
E                'extra2': 'extra2_value',
E                'should_be_removed_by_event_scrubber': '[Filtered]',
E                'sys.argv': '[Filtered]'},
E      'level': 'warning-X',
E      'modules': {'anyio': '3.6.2',
E                  'asttokens': '2.4.1',
E                  'attrs': '22.2.0',
E                  'brotli': '1.1.0',
E                  'certifi': '2025.4.26',
E                  'charset-normalizer': '2.0.12',
E                  'colorama': '0.4.5',
E                  'contextvars': '2.4',
E                  'coverage': '6.2',
E                  'dataclasses': '0.8',
E                  'docker': '5.0.3',
E                  'docopt': '0.6.2',
E                  'executing': '2.0.1',
E                  'h11': '0.12.0',
E                  'h2': '4.1.0',
E                  'hpack': '4.0.0',
E                  'httpcore': '0.14.7',
E                  'hyperframe': '6.0.1',
E                  'idna': '3.10',
E                  'immutables': '0.19',
E                  'importlib-metadata': '4.8.3',
E                  'iniconfig': '1.1.1',
E                  'jsonschema': '3.2.0',
E                  'packaging': '21.3',
E                  'pip': '21.3.1',
E                  'pluggy': '1.0.0',
E                  'py': '1.11.0',
E                  'pyparsing': '3.1.4',
E                  'pyrsistent': '0.18.0',
E                  'pysocks': '1.7.1',
E                  'pytest': '6.2.5',
E                  'pytest-asyncio': '0.16.0',
E                  'pytest-cov': '4.0.0',
E                  'pytest-forked': '1.4.0',
E                  'pytest-localserver': '0.9.0.post0',
E                  'pytest-watch': '4.2.0',
E                  'requests': '2.27.1',
E                  'responses': '0.17.0',
E                  'sentry-sdk': '2.42.1',
E                  'setuptools': '59.6.0',
E                  'six': '1.17.0',
E                  'sniffio': '1.2.0',
E                  'socksio': '1.0.0',
E                  'toml': '0.10.2',
E                  'tomli': '1.2.3',
E                  'typing-extensions': '4.1.1',
E                  'urllib3': '1.26.20',
E                  'watchdog': '2.3.1',
E                  'websocket-client': '1.3.1',
E                  'werkzeug': '2.0.3',
E                  'wheel': '0.37.1',
E                  'zipp': '3.6.0'},
E      'platform': 'python',
E      'release': '0.1.2rc3',
E      'sdk': {'integrations': ['argv',
E                               'atexit',
E                               'dedupe',
E                               'excepthook',
E                               'logging',
E                               'modules',
E                               'stdlib',
E                               'threading'],
E              'name': 'sentry.python',
E              'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],
E              'version': '2.42.1'},
E      'server_name': '88fcdc08b64f',
E      'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},
E      'timestamp': '2025-10-20T14:59:29.037480Z',
E      'transaction': 'test_transaction',
E      'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E      'user': {'email': '[email protected]',
E               'id': '123',
E               'ip_address': '[Filtered]'}}
E     Differing items:
E     {'_meta': {}} != {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [[...]]}}, 'sys.argv': {'': {'rem': [[...]]}}}, 'user': {'ip_address': {'': {'rem': [[...]]}}}}}
E     Full diff:
E       {
E     +  '_meta': {},
E     -  '_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',
E     -                                                                            's']]}},
E     -                      'sys.argv': {'': {'rem': [['!config',
E     -                                                 's']]}}},
E     -            'user': {'ip_address': {'': {'rem': [['!config',
E     -                                                  's']]}}}},
E        'breadcrumbs': {'values': [{'category': 'error-level',
E                                    'data': {'breadcrumb2': 'somedata'},
E                                    'level': 'error',
E                                    'message': 'Authenticated user %s',
E     -                              'timestamp': <ANY>,
E     +                              'timestamp': '2025-10-20T14:59:29.037146Z',
E                                    'type': 'default'}]},
E        'contexts': {'character': {'age': 19,
E                                   'attack_type': 'melee',
E                                   'name': 'Mighty Fighter changed by before_send'},
E     -               'runtime': {'build': <ANY>,
E     +               'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E     +                                    '[GCC 10.2.1 20210110]',
E                                 'name': 'CPython',
E     -                           'version': <ANY>},
E     ?                                      ^^^^^
E     +                           'version': '3.6.15'},
E     ?                                      ^^^^^^^^
E     -               'trace': {'data': {'thread.id': <ANY>,
E     ?                                               ^^^^^
E     +               'trace': {'data': {'thread.id': '139650522523456',
E     ?                                               ^^^^^^^^^^^^^^^^^
E                                        'thread.name': 'MainThread'},
E                               'description': None,
E                               'op': 'test_span',
E                               'origin': 'manual',
E                               'parent_span_id': 'b53748f63d60207e',
E                               'span_id': '83f16ce5c82370ac',
E                               'trace_id': '9bad460f4fe94b22ac15f2a45d346eaf'}},
E        'environment': 'checking-compatibility-with-sdk1',
E     -  'event_id': <ANY>,
E     +  'event_id': 'b474946afe1d4bc28cb6d88459a991cb',
E        'exception': {'values': [{'mechanism': {'handled': True,
E                                                'type': 'generic'},
E                                  'module': None,
E     -                            'stacktrace': {'frames': [{'abs_path': <ANY>,
E     +                            'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'context_line': '        '
E                                                                             'raise '
E                                                                             'ValueError("This '
E                                                                             'is a '
E                                                                             'test '
E                                                                             'exception")',
E                                                             'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'function': '_faulty_function',
E                                                             'in_app': True,
E     -                                                       'lineno': <ANY>,
E     ?                                                                 ^^^^^
E     +                                                       'lineno': 244,
E     ?                                                                 ^^^
E                                                             'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                             'post_context': ['    '
E                                                                              'except '
E                                                                              'ValueError '
E                                                                              'as ex:',
E                                                                              '        '
E                                                                              'sentry_sdk.capture_exception(ex)',
E                                                                              '',
E                                                                              '',
E                                                                              'def '
E                                                                              '_test_before_send(event, '
E                                                                              'hint):'],
E                                                             'pre_context': ['    '
E                                                                             'return '
E                                                                             'create_expected_transaction_event',
E                                                                             '',
E                                                                             '',
E                                                                             'def '
E                                                                             '_faulty_function():',
E                                                                             '    '
E                                                                             'try:'],
E     -                                                       'vars': {'ex': <ANY>}}]},
E     ?                                                                      ^^^^^^^^^^
E     +                                                       'vars': {'ex': "ValueError('This "
E     ?                                                                      ^^^^^^^^^^^^^^^^^^^
E     +                                                                      'is a '
E     +                                                                      'test '
E     +                                                                      "exception',)"}}]},
E                                  'type': 'ValueError',
E                                  'value': 'This is a test exception'}]},
E        'extra': {'extra1': 'extra1_value',
E                  'extra2': 'extra2_value',
E                  'should_be_removed_by_event_scrubber': '[Filtered]',
E                  'sys.argv': '[Filtered]'},
E        'level': 'warning-X',
E     -  'modules': <ANY>,
E     +  'modules': {'anyio': '3.6.2',
E     +              'asttokens': '2.4.1',
E     +              'attrs': '22.2.0',
E     +              'brotli': '1.1.0',
E     +              'certifi': '2025.4.26',
E     +              'charset-normalizer': '2.0.12',
E     +              'colorama': '0.4.5',
E     +              'contextvars': '2.4',
E     +              'coverage': '6.2',
E     +              'dataclasses': '0.8',
E     +              'docker': '5.0.3',
E     +              'docopt': '0.6.2',
E     +              'executing': '2.0.1',
E     +              'h11': '0.12.0',
E     +              'h2': '4.1.0',
E     +              'hpack': '4.0.0',
E     +              'httpcore': '0.14.7',
E     +              'hyperframe': '6.0.1',
E     +              'idna': '3.10',
E     +              'immutables': '0.19',
E     +              'importlib-metadata': '4.8.3',
E     +              'iniconfig': '1.1.1',
E     +              'jsonschema': '3.2.0',
E     +              'packaging': '21.3',
E     +              'pip': '21.3.1',
E     +              'pluggy': '1.0.0',
E     +              'py': '1.11.0',
E     +              'pyparsing': '3.1.4',
E     +              'pyrsistent': '0.18.0',
E     +              'pysocks': '1.7.1',
E     +              'pytest': '6.2.5',
E     +              'pytest-asyncio': '0.16.0',
E     +              'pytest-cov': '4.0.0',
E     +              'pytest-forked': '1.4.0',
E     +              'pytest-localserver': '0.9.0.post0',
E     +              'pytest-watch': '4.2.0',
E     +              'requests': '2.27.1',
E     +              'responses': '0.17.0',
E     +              'sentry-sdk': '2.42.1',
E     +              'setuptools': '59.6.0',
E     +              'six': '1.17.0',
E     +              'sniffio': '1.2.0',
E     +              'socksio': '1.0.0',
E     +              'toml': '0.10.2',
E     +              'tomli': '1.2.3',
E     +              'typing-extensions': '4.1.1',
E     +              'urllib3': '1.26.20',
E     +              'watchdog': '2.3.1',
E     +              'websocket-client': '1.3.1',
E     +              'werkzeug': '2.0.3',
E     +              'wheel': '0.37.1',
E     +              'zipp': '3.6.0'},
E        'platform': 'python',
E        'release': '0.1.2rc3',
E        'sdk': {'integrations': ['argv',
E                                 'atexit',
E                                 'dedupe',
E                                 'excepthook',
E                                 'logging',
E                                 'modules',
E                                 'stdlib',
E                                 'threading'],
E                'name': 'sentry.python',
E                'packages': [{'name': 'pypi:sentry-sdk',
E     -                        'version': <ANY>}],
E     ?                                   ^^^^^
E     +                        'version': '2.42.1'}],
E     ?                                   ^^^^^^^^
E     -          'version': <ANY>},
E     ?                     ^^^^^
E     +          'version': '2.42.1'},
E     ?                     ^^^^^^^^
E     -  'server_name': <ANY>,
E     +  'server_name': '88fcdc08b64f',
E        'tags': {'tag1': 'tag1_value',
E                 'tag2': 'tag2_value'},
E     -  'timestamp': <ANY>,
E     +  'timestamp': '2025-10-20T14:59:29.037480Z',
E        'transaction': 'test_transaction',
E     -  'transaction_info': {'source': 'custom'},
E     +  'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E     ?                                 +++++++++++++++++++++++++++        +
E        'user': {'email': '[email protected]',
E                 'id': '123',
E                 'ip_address': '[Filtered]'},
E       }
tests.new_scopes_compat.test_new_scopes_compat_event::test_event5
Stack Traces | 0.026s run time
tests/new_scopes_compat/test_new_scopes_compat_event.py:496: in test_event5
    assert error == expected_error(trx, span)
E   assert {'_meta': {},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': '2025-10-20T14:59:29.072190Z',\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'\n                                   '[GCC 10.2.1 20210110]',\n                          'name': 'CPython',\n                          'version': '3.6.15'},\n              'trace': {'data': {'thread.id': '139650522523456',\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': 'a3447535e46b7086',\n                        'span_id': 'ae50c1f6ba98b53c',\n                        'trace_id': 'ef494ac66ba54ee0b118b8900bca70ac'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': '5fc42b4407554f85880263eecf83577c',\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': 244,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': "ValueError('This "\n                                                                     'is a '\n                                                                     'test '\n                                                                     "exception',)"}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': {'anyio': '3.6.2',\n             'asttokens': '2.4.1',\n             'attrs': '22.2.0',\n             'brotli': '1.1.0',\n             'certifi': '2025.4.26',\n             'charset-normalizer': '2.0.12',\n             'colorama': '0.4.5',\n             'contextvars': '2.4',\n             'coverage': '6.2',\n             'dataclasses': '0.8',\n             'docker': '5.0.3',\n             'docopt': '0.6.2',\n             'executing': '2.0.1',\n             'h11': '0.12.0',\n             'h2': '4.1.0',\n             'hpack': '4.0.0',\n             'httpcore': '0.14.7',\n             'hyperframe': '6.0.1',\n             'idna': '3.10',\n             'immutables': '0.19',\n             'importlib-metadata': '4.8.3',\n             'iniconfig': '1.1.1',\n             'jsonschema': '3.2.0',\n             'packaging': '21.3',\n             'pip': '21.3.1',\n             'pluggy': '1.0.0',\n             'py': '1.11.0',\n             'pyparsing': '3.1.4',\n             'pyrsistent': '0.18.0',\n             'pysocks': '1.7.1',\n             'pytest': '6.2.5',\n             'pytest-asyncio': '0.16.0',\n             'pytest-cov': '4.0.0',\n             'pytest-forked': '1.4.0',\n             'pytest-localserver': '0.9.0.post0',\n             'pytest-watch': '4.2.0',\n             'requests': '2.27.1',\n             'responses': '0.17.0',\n             'sentry-sdk': '2.42.1',\n             'setuptools': '59.6.0',\n             'six': '1.17.0',\n             'sniffio': '1.2.0',\n             'socksio': '1.0.0',\n             'toml': '0.10.2',\n             'tomli': '1.2.3',\n             'typing-extensions': '4.1.1',\n             'urllib3': '1.26.20',\n             'watchdog': '2.3.1',\n             'websocket-client': '1.3.1',\n             'werkzeug': '2.0.3',\n             'wheel': '0.37.1',\n             'zipp': '3.6.0'},\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],\n         'version': '2.42.1'},\n 'server_name': '88fcdc08b64f',\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': '2025-10-20T14:59:29.072521Z',\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}} == {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',\n                                                                           's']]}},\n                     'sys.argv': {'': {'rem': [['!config', 's']]}}},\n           'user': {'ip_address': {'': {'rem': [['!config', 's']]}}}},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': <ANY>,\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': <ANY>, 'name': 'CPython', 'version': <ANY>},\n              'trace': {'data': {'thread.id': <ANY>,\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': 'a3447535e46b7086',\n                        'span_id': 'ae50c1f6ba98b53c',\n                        'trace_id': 'ef494ac66ba54ee0b118b8900bca70ac'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': <ANY>,\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': <ANY>,\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': <ANY>,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': <ANY>}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': <ANY>,\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': <ANY>}],\n         'version': <ANY>},\n 'server_name': <ANY>,\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': <ANY>,\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': 'custom'},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}}
E     Common items:
E     {'breadcrumbs': {'values': [{'category': 'error-level',
E                                  'data': {'breadcrumb2': 'somedata'},
E                                  'level': 'error',
E                                  'message': 'Authenticated user %s',
E                                  'timestamp': '2025-10-20T14:59:29.072190Z',
E                                  'type': 'default'}]},
E      'contexts': {'character': {'age': 19,
E                                 'attack_type': 'melee',
E                                 'name': 'Mighty Fighter changed by before_send'},
E                   'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E                                        '[GCC 10.2.1 20210110]',
E                               'name': 'CPython',
E                               'version': '3.6.15'},
E                   'trace': {'data': {'thread.id': '139650522523456',
E                                      'thread.name': 'MainThread'},
E                             'description': None,
E                             'op': 'test_span',
E                             'origin': 'manual',
E                             'parent_span_id': 'a3447535e46b7086',
E                             'span_id': 'ae50c1f6ba98b53c',
E                             'trace_id': 'ef494ac66ba54ee0b118b8900bca70ac'}},
E      'environment': 'checking-compatibility-with-sdk1',
E      'event_id': '5fc42b4407554f85880263eecf83577c',
E      'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},
E                                'module': None,
E                                'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'context_line': '        '
E                                                                           'raise '
E                                                                           'ValueError("This '
E                                                                           'is a '
E                                                                           'test '
E                                                                           'exception")',
E                                                           'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'function': '_faulty_function',
E                                                           'in_app': True,
E                                                           'lineno': 244,
E                                                           'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                           'post_context': ['    '
E                                                                            'except '
E                                                                            'ValueError '
E                                                                            'as ex:',
E                                                                            '        '
E                                                                            'sentry_sdk.capture_exception(ex)',
E                                                                            '',
E                                                                            '',
E                                                                            'def '
E                                                                            '_test_before_send(event, '
E                                                                            'hint):'],
E                                                           'pre_context': ['    '
E                                                                           'return '
E                                                                           'create_expected_transaction_event',
E                                                                           '',
E                                                                           '',
E                                                                           'def '
E                                                                           '_faulty_function():',
E                                                                           '    '
E                                                                           'try:'],
E                                                           'vars': {'ex': "ValueError('This "
E                                                                          'is a '
E                                                                          'test '
E                                                                          "exception',)"}}]},
E                                'type': 'ValueError',
E                                'value': 'This is a test exception'}]},
E      'extra': {'extra1': 'extra1_value',
E                'extra2': 'extra2_value',
E                'should_be_removed_by_event_scrubber': '[Filtered]',
E                'sys.argv': '[Filtered]'},
E      'level': 'warning-X',
E      'modules': {'anyio': '3.6.2',
E                  'asttokens': '2.4.1',
E                  'attrs': '22.2.0',
E                  'brotli': '1.1.0',
E                  'certifi': '2025.4.26',
E                  'charset-normalizer': '2.0.12',
E                  'colorama': '0.4.5',
E                  'contextvars': '2.4',
E                  'coverage': '6.2',
E                  'dataclasses': '0.8',
E                  'docker': '5.0.3',
E                  'docopt': '0.6.2',
E                  'executing': '2.0.1',
E                  'h11': '0.12.0',
E                  'h2': '4.1.0',
E                  'hpack': '4.0.0',
E                  'httpcore': '0.14.7',
E                  'hyperframe': '6.0.1',
E                  'idna': '3.10',
E                  'immutables': '0.19',
E                  'importlib-metadata': '4.8.3',
E                  'iniconfig': '1.1.1',
E                  'jsonschema': '3.2.0',
E                  'packaging': '21.3',
E                  'pip': '21.3.1',
E                  'pluggy': '1.0.0',
E                  'py': '1.11.0',
E                  'pyparsing': '3.1.4',
E                  'pyrsistent': '0.18.0',
E                  'pysocks': '1.7.1',
E                  'pytest': '6.2.5',
E                  'pytest-asyncio': '0.16.0',
E                  'pytest-cov': '4.0.0',
E                  'pytest-forked': '1.4.0',
E                  'pytest-localserver': '0.9.0.post0',
E                  'pytest-watch': '4.2.0',
E                  'requests': '2.27.1',
E                  'responses': '0.17.0',
E                  'sentry-sdk': '2.42.1',
E                  'setuptools': '59.6.0',
E                  'six': '1.17.0',
E                  'sniffio': '1.2.0',
E                  'socksio': '1.0.0',
E                  'toml': '0.10.2',
E                  'tomli': '1.2.3',
E                  'typing-extensions': '4.1.1',
E                  'urllib3': '1.26.20',
E                  'watchdog': '2.3.1',
E                  'websocket-client': '1.3.1',
E                  'werkzeug': '2.0.3',
E                  'wheel': '0.37.1',
E                  'zipp': '3.6.0'},
E      'platform': 'python',
E      'release': '0.1.2rc3',
E      'sdk': {'integrations': ['argv',
E                               'atexit',
E                               'dedupe',
E                               'excepthook',
E                               'logging',
E                               'modules',
E                               'stdlib',
E                               'threading'],
E              'name': 'sentry.python',
E              'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],
E              'version': '2.42.1'},
E      'server_name': '88fcdc08b64f',
E      'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},
E      'timestamp': '2025-10-20T14:59:29.072521Z',
E      'transaction': 'test_transaction',
E      'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E      'user': {'email': '[email protected]',
E               'id': '123',
E               'ip_address': '[Filtered]'}}
E     Differing items:
E     {'_meta': {}} != {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [[...]]}}, 'sys.argv': {'': {'rem': [[...]]}}}, 'user': {'ip_address': {'': {'rem': [[...]]}}}}}
E     Full diff:
E       {
E     +  '_meta': {},
E     -  '_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',
E     -                                                                            's']]}},
E     -                      'sys.argv': {'': {'rem': [['!config',
E     -                                                 's']]}}},
E     -            'user': {'ip_address': {'': {'rem': [['!config',
E     -                                                  's']]}}}},
E        'breadcrumbs': {'values': [{'category': 'error-level',
E                                    'data': {'breadcrumb2': 'somedata'},
E                                    'level': 'error',
E                                    'message': 'Authenticated user %s',
E     -                              'timestamp': <ANY>,
E     +                              'timestamp': '2025-10-20T14:59:29.072190Z',
E                                    'type': 'default'}]},
E        'contexts': {'character': {'age': 19,
E                                   'attack_type': 'melee',
E                                   'name': 'Mighty Fighter changed by before_send'},
E     -               'runtime': {'build': <ANY>,
E     +               'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E     +                                    '[GCC 10.2.1 20210110]',
E                                 'name': 'CPython',
E     -                           'version': <ANY>},
E     ?                                      ^^^^^
E     +                           'version': '3.6.15'},
E     ?                                      ^^^^^^^^
E     -               'trace': {'data': {'thread.id': <ANY>,
E     ?                                               ^^^^^
E     +               'trace': {'data': {'thread.id': '139650522523456',
E     ?                                               ^^^^^^^^^^^^^^^^^
E                                        'thread.name': 'MainThread'},
E                               'description': None,
E                               'op': 'test_span',
E                               'origin': 'manual',
E                               'parent_span_id': 'a3447535e46b7086',
E                               'span_id': 'ae50c1f6ba98b53c',
E                               'trace_id': 'ef494ac66ba54ee0b118b8900bca70ac'}},
E        'environment': 'checking-compatibility-with-sdk1',
E     -  'event_id': <ANY>,
E     +  'event_id': '5fc42b4407554f85880263eecf83577c',
E        'exception': {'values': [{'mechanism': {'handled': True,
E                                                'type': 'generic'},
E                                  'module': None,
E     -                            'stacktrace': {'frames': [{'abs_path': <ANY>,
E     +                            'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'context_line': '        '
E                                                                             'raise '
E                                                                             'ValueError("This '
E                                                                             'is a '
E                                                                             'test '
E                                                                             'exception")',
E                                                             'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'function': '_faulty_function',
E                                                             'in_app': True,
E     -                                                       'lineno': <ANY>,
E     ?                                                                 ^^^^^
E     +                                                       'lineno': 244,
E     ?                                                                 ^^^
E                                                             'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                             'post_context': ['    '
E                                                                              'except '
E                                                                              'ValueError '
E                                                                              'as ex:',
E                                                                              '        '
E                                                                              'sentry_sdk.capture_exception(ex)',
E                                                                              '',
E                                                                              '',
E                                                                              'def '
E                                                                              '_test_before_send(event, '
E                                                                              'hint):'],
E                                                             'pre_context': ['    '
E                                                                             'return '
E                                                                             'create_expected_transaction_event',
E                                                                             '',
E                                                                             '',
E                                                                             'def '
E                                                                             '_faulty_function():',
E                                                                             '    '
E                                                                             'try:'],
E     -                                                       'vars': {'ex': <ANY>}}]},
E     ?                                                                      ^^^^^^^^^^
E     +                                                       'vars': {'ex': "ValueError('This "
E     ?                                                                      ^^^^^^^^^^^^^^^^^^^
E     +                                                                      'is a '
E     +                                                                      'test '
E     +                                                                      "exception',)"}}]},
E                                  'type': 'ValueError',
E                                  'value': 'This is a test exception'}]},
E        'extra': {'extra1': 'extra1_value',
E                  'extra2': 'extra2_value',
E                  'should_be_removed_by_event_scrubber': '[Filtered]',
E                  'sys.argv': '[Filtered]'},
E        'level': 'warning-X',
E     -  'modules': <ANY>,
E     +  'modules': {'anyio': '3.6.2',
E     +              'asttokens': '2.4.1',
E     +              'attrs': '22.2.0',
E     +              'brotli': '1.1.0',
E     +              'certifi': '2025.4.26',
E     +              'charset-normalizer': '2.0.12',
E     +              'colorama': '0.4.5',
E     +              'contextvars': '2.4',
E     +              'coverage': '6.2',
E     +              'dataclasses': '0.8',
E     +              'docker': '5.0.3',
E     +              'docopt': '0.6.2',
E     +              'executing': '2.0.1',
E     +              'h11': '0.12.0',
E     +              'h2': '4.1.0',
E     +              'hpack': '4.0.0',
E     +              'httpcore': '0.14.7',
E     +              'hyperframe': '6.0.1',
E     +              'idna': '3.10',
E     +              'immutables': '0.19',
E     +              'importlib-metadata': '4.8.3',
E     +              'iniconfig': '1.1.1',
E     +              'jsonschema': '3.2.0',
E     +              'packaging': '21.3',
E     +              'pip': '21.3.1',
E     +              'pluggy': '1.0.0',
E     +              'py': '1.11.0',
E     +              'pyparsing': '3.1.4',
E     +              'pyrsistent': '0.18.0',
E     +              'pysocks': '1.7.1',
E     +              'pytest': '6.2.5',
E     +              'pytest-asyncio': '0.16.0',
E     +              'pytest-cov': '4.0.0',
E     +              'pytest-forked': '1.4.0',
E     +              'pytest-localserver': '0.9.0.post0',
E     +              'pytest-watch': '4.2.0',
E     +              'requests': '2.27.1',
E     +              'responses': '0.17.0',
E     +              'sentry-sdk': '2.42.1',
E     +              'setuptools': '59.6.0',
E     +              'six': '1.17.0',
E     +              'sniffio': '1.2.0',
E     +              'socksio': '1.0.0',
E     +              'toml': '0.10.2',
E     +              'tomli': '1.2.3',
E     +              'typing-extensions': '4.1.1',
E     +              'urllib3': '1.26.20',
E     +              'watchdog': '2.3.1',
E     +              'websocket-client': '1.3.1',
E     +              'werkzeug': '2.0.3',
E     +              'wheel': '0.37.1',
E     +              'zipp': '3.6.0'},
E        'platform': 'python',
E        'release': '0.1.2rc3',
E        'sdk': {'integrations': ['argv',
E                                 'atexit',
E                                 'dedupe',
E                                 'excepthook',
E                                 'logging',
E                                 'modules',
E                                 'stdlib',
E                                 'threading'],
E                'name': 'sentry.python',
E                'packages': [{'name': 'pypi:sentry-sdk',
E     -                        'version': <ANY>}],
E     ?                                   ^^^^^
E     +                        'version': '2.42.1'}],
E     ?                                   ^^^^^^^^
E     -          'version': <ANY>},
E     ?                     ^^^^^
E     +          'version': '2.42.1'},
E     ?                     ^^^^^^^^
E     -  'server_name': <ANY>,
E     +  'server_name': '88fcdc08b64f',
E        'tags': {'tag1': 'tag1_value',
E                 'tag2': 'tag2_value'},
E     -  'timestamp': <ANY>,
E     +  'timestamp': '2025-10-20T14:59:29.072521Z',
E        'transaction': 'test_transaction',
E     -  'transaction_info': {'source': 'custom'},
E     +  'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E     ?                                 +++++++++++++++++++++++++++        +
E        'user': {'email': '[email protected]',
E                 'id': '123',
E                 'ip_address': '[Filtered]'},
E       }
tests.new_scopes_compat.test_new_scopes_compat_event::test_event2
Stack Traces | 0.027s run time
tests/new_scopes_compat/test_new_scopes_compat_event.py:388: in test_event2
    assert error == expected_error(trx, span)
E   assert {'_meta': {},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': '2025-10-20T14:59:28.967298Z',\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'\n                                   '[GCC 10.2.1 20210110]',\n                          'name': 'CPython',\n                          'version': '3.6.15'},\n              'trace': {'data': {'thread.id': '139650522523456',\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': '91ead6b470f34760',\n                        'span_id': '95f5f031a5d83d34',\n                        'trace_id': 'bd745788bcc148b3ba8922d65727a9b8'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': '80cefc92810944e58e36cda7a1cdda5b',\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': 244,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': "ValueError('This "\n                                                                     'is a '\n                                                                     'test '\n                                                                     "exception',)"}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': {'anyio': '3.6.2',\n             'asttokens': '2.4.1',\n             'attrs': '22.2.0',\n             'brotli': '1.1.0',\n             'certifi': '2025.4.26',\n             'charset-normalizer': '2.0.12',\n             'colorama': '0.4.5',\n             'contextvars': '2.4',\n             'coverage': '6.2',\n             'dataclasses': '0.8',\n             'docker': '5.0.3',\n             'docopt': '0.6.2',\n             'executing': '2.0.1',\n             'h11': '0.12.0',\n             'h2': '4.1.0',\n             'hpack': '4.0.0',\n             'httpcore': '0.14.7',\n             'hyperframe': '6.0.1',\n             'idna': '3.10',\n             'immutables': '0.19',\n             'importlib-metadata': '4.8.3',\n             'iniconfig': '1.1.1',\n             'jsonschema': '3.2.0',\n             'packaging': '21.3',\n             'pip': '21.3.1',\n             'pluggy': '1.0.0',\n             'py': '1.11.0',\n             'pyparsing': '3.1.4',\n             'pyrsistent': '0.18.0',\n             'pysocks': '1.7.1',\n             'pytest': '6.2.5',\n             'pytest-asyncio': '0.16.0',\n             'pytest-cov': '4.0.0',\n             'pytest-forked': '1.4.0',\n             'pytest-localserver': '0.9.0.post0',\n             'pytest-watch': '4.2.0',\n             'requests': '2.27.1',\n             'responses': '0.17.0',\n             'sentry-sdk': '2.42.1',\n             'setuptools': '59.6.0',\n             'six': '1.17.0',\n             'sniffio': '1.2.0',\n             'socksio': '1.0.0',\n             'toml': '0.10.2',\n             'tomli': '1.2.3',\n             'typing-extensions': '4.1.1',\n             'urllib3': '1.26.20',\n             'watchdog': '2.3.1',\n             'websocket-client': '1.3.1',\n             'werkzeug': '2.0.3',\n             'wheel': '0.37.1',\n             'zipp': '3.6.0'},\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],\n         'version': '2.42.1'},\n 'server_name': '88fcdc08b64f',\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': '2025-10-20T14:59:28.967693Z',\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}} == {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',\n                                                                           's']]}},\n                     'sys.argv': {'': {'rem': [['!config', 's']]}}},\n           'user': {'ip_address': {'': {'rem': [['!config', 's']]}}}},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': <ANY>,\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': <ANY>, 'name': 'CPython', 'version': <ANY>},\n              'trace': {'data': {'thread.id': <ANY>,\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': '91ead6b470f34760',\n                        'span_id': '95f5f031a5d83d34',\n                        'trace_id': 'bd745788bcc148b3ba8922d65727a9b8'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': <ANY>,\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': <ANY>,\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': <ANY>,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': <ANY>}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': <ANY>,\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': <ANY>}],\n         'version': <ANY>},\n 'server_name': <ANY>,\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': <ANY>,\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': 'custom'},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}}
E     Common items:
E     {'breadcrumbs': {'values': [{'category': 'error-level',
E                                  'data': {'breadcrumb2': 'somedata'},
E                                  'level': 'error',
E                                  'message': 'Authenticated user %s',
E                                  'timestamp': '2025-10-20T14:59:28.967298Z',
E                                  'type': 'default'}]},
E      'contexts': {'character': {'age': 19,
E                                 'attack_type': 'melee',
E                                 'name': 'Mighty Fighter changed by before_send'},
E                   'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E                                        '[GCC 10.2.1 20210110]',
E                               'name': 'CPython',
E                               'version': '3.6.15'},
E                   'trace': {'data': {'thread.id': '139650522523456',
E                                      'thread.name': 'MainThread'},
E                             'description': None,
E                             'op': 'test_span',
E                             'origin': 'manual',
E                             'parent_span_id': '91ead6b470f34760',
E                             'span_id': '95f5f031a5d83d34',
E                             'trace_id': 'bd745788bcc148b3ba8922d65727a9b8'}},
E      'environment': 'checking-compatibility-with-sdk1',
E      'event_id': '80cefc92810944e58e36cda7a1cdda5b',
E      'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},
E                                'module': None,
E                                'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'context_line': '        '
E                                                                           'raise '
E                                                                           'ValueError("This '
E                                                                           'is a '
E                                                                           'test '
E                                                                           'exception")',
E                                                           'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'function': '_faulty_function',
E                                                           'in_app': True,
E                                                           'lineno': 244,
E                                                           'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                           'post_context': ['    '
E                                                                            'except '
E                                                                            'ValueError '
E                                                                            'as ex:',
E                                                                            '        '
E                                                                            'sentry_sdk.capture_exception(ex)',
E                                                                            '',
E                                                                            '',
E                                                                            'def '
E                                                                            '_test_before_send(event, '
E                                                                            'hint):'],
E                                                           'pre_context': ['    '
E                                                                           'return '
E                                                                           'create_expected_transaction_event',
E                                                                           '',
E                                                                           '',
E                                                                           'def '
E                                                                           '_faulty_function():',
E                                                                           '    '
E                                                                           'try:'],
E                                                           'vars': {'ex': "ValueError('This "
E                                                                          'is a '
E                                                                          'test '
E                                                                          "exception',)"}}]},
E                                'type': 'ValueError',
E                                'value': 'This is a test exception'}]},
E      'extra': {'extra1': 'extra1_value',
E                'extra2': 'extra2_value',
E                'should_be_removed_by_event_scrubber': '[Filtered]',
E                'sys.argv': '[Filtered]'},
E      'level': 'warning-X',
E      'modules': {'anyio': '3.6.2',
E                  'asttokens': '2.4.1',
E                  'attrs': '22.2.0',
E                  'brotli': '1.1.0',
E                  'certifi': '2025.4.26',
E                  'charset-normalizer': '2.0.12',
E                  'colorama': '0.4.5',
E                  'contextvars': '2.4',
E                  'coverage': '6.2',
E                  'dataclasses': '0.8',
E                  'docker': '5.0.3',
E                  'docopt': '0.6.2',
E                  'executing': '2.0.1',
E                  'h11': '0.12.0',
E                  'h2': '4.1.0',
E                  'hpack': '4.0.0',
E                  'httpcore': '0.14.7',
E                  'hyperframe': '6.0.1',
E                  'idna': '3.10',
E                  'immutables': '0.19',
E                  'importlib-metadata': '4.8.3',
E                  'iniconfig': '1.1.1',
E                  'jsonschema': '3.2.0',
E                  'packaging': '21.3',
E                  'pip': '21.3.1',
E                  'pluggy': '1.0.0',
E                  'py': '1.11.0',
E                  'pyparsing': '3.1.4',
E                  'pyrsistent': '0.18.0',
E                  'pysocks': '1.7.1',
E                  'pytest': '6.2.5',
E                  'pytest-asyncio': '0.16.0',
E                  'pytest-cov': '4.0.0',
E                  'pytest-forked': '1.4.0',
E                  'pytest-localserver': '0.9.0.post0',
E                  'pytest-watch': '4.2.0',
E                  'requests': '2.27.1',
E                  'responses': '0.17.0',
E                  'sentry-sdk': '2.42.1',
E                  'setuptools': '59.6.0',
E                  'six': '1.17.0',
E                  'sniffio': '1.2.0',
E                  'socksio': '1.0.0',
E                  'toml': '0.10.2',
E                  'tomli': '1.2.3',
E                  'typing-extensions': '4.1.1',
E                  'urllib3': '1.26.20',
E                  'watchdog': '2.3.1',
E                  'websocket-client': '1.3.1',
E                  'werkzeug': '2.0.3',
E                  'wheel': '0.37.1',
E                  'zipp': '3.6.0'},
E      'platform': 'python',
E      'release': '0.1.2rc3',
E      'sdk': {'integrations': ['argv',
E                               'atexit',
E                               'dedupe',
E                               'excepthook',
E                               'logging',
E                               'modules',
E                               'stdlib',
E                               'threading'],
E              'name': 'sentry.python',
E              'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],
E              'version': '2.42.1'},
E      'server_name': '88fcdc08b64f',
E      'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},
E      'timestamp': '2025-10-20T14:59:28.967693Z',
E      'transaction': 'test_transaction',
E      'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E      'user': {'email': '[email protected]',
E               'id': '123',
E               'ip_address': '[Filtered]'}}
E     Differing items:
E     {'_meta': {}} != {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [[...]]}}, 'sys.argv': {'': {'rem': [[...]]}}}, 'user': {'ip_address': {'': {'rem': [[...]]}}}}}
E     Full diff:
E       {
E     +  '_meta': {},
E     -  '_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',
E     -                                                                            's']]}},
E     -                      'sys.argv': {'': {'rem': [['!config',
E     -                                                 's']]}}},
E     -            'user': {'ip_address': {'': {'rem': [['!config',
E     -                                                  's']]}}}},
E        'breadcrumbs': {'values': [{'category': 'error-level',
E                                    'data': {'breadcrumb2': 'somedata'},
E                                    'level': 'error',
E                                    'message': 'Authenticated user %s',
E     -                              'timestamp': <ANY>,
E     +                              'timestamp': '2025-10-20T14:59:28.967298Z',
E                                    'type': 'default'}]},
E        'contexts': {'character': {'age': 19,
E                                   'attack_type': 'melee',
E                                   'name': 'Mighty Fighter changed by before_send'},
E     -               'runtime': {'build': <ANY>,
E     +               'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E     +                                    '[GCC 10.2.1 20210110]',
E                                 'name': 'CPython',
E     -                           'version': <ANY>},
E     ?                                      ^^^^^
E     +                           'version': '3.6.15'},
E     ?                                      ^^^^^^^^
E     -               'trace': {'data': {'thread.id': <ANY>,
E     ?                                               ^^^^^
E     +               'trace': {'data': {'thread.id': '139650522523456',
E     ?                                               ^^^^^^^^^^^^^^^^^
E                                        'thread.name': 'MainThread'},
E                               'description': None,
E                               'op': 'test_span',
E                               'origin': 'manual',
E                               'parent_span_id': '91ead6b470f34760',
E                               'span_id': '95f5f031a5d83d34',
E                               'trace_id': 'bd745788bcc148b3ba8922d65727a9b8'}},
E        'environment': 'checking-compatibility-with-sdk1',
E     -  'event_id': <ANY>,
E     +  'event_id': '80cefc92810944e58e36cda7a1cdda5b',
E        'exception': {'values': [{'mechanism': {'handled': True,
E                                                'type': 'generic'},
E                                  'module': None,
E     -                            'stacktrace': {'frames': [{'abs_path': <ANY>,
E     +                            'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'context_line': '        '
E                                                                             'raise '
E                                                                             'ValueError("This '
E                                                                             'is a '
E                                                                             'test '
E                                                                             'exception")',
E                                                             'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'function': '_faulty_function',
E                                                             'in_app': True,
E     -                                                       'lineno': <ANY>,
E     ?                                                                 ^^^^^
E     +                                                       'lineno': 244,
E     ?                                                                 ^^^
E                                                             'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                             'post_context': ['    '
E                                                                              'except '
E                                                                              'ValueError '
E                                                                              'as ex:',
E                                                                              '        '
E                                                                              'sentry_sdk.capture_exception(ex)',
E                                                                              '',
E                                                                              '',
E                                                                              'def '
E                                                                              '_test_before_send(event, '
E                                                                              'hint):'],
E                                                             'pre_context': ['    '
E                                                                             'return '
E                                                                             'create_expected_transaction_event',
E                                                                             '',
E                                                                             '',
E                                                                             'def '
E                                                                             '_faulty_function():',
E                                                                             '    '
E                                                                             'try:'],
E     -                                                       'vars': {'ex': <ANY>}}]},
E     ?                                                                      ^^^^^^^^^^
E     +                                                       'vars': {'ex': "ValueError('This "
E     ?                                                                      ^^^^^^^^^^^^^^^^^^^
E     +                                                                      'is a '
E     +                                                                      'test '
E     +                                                                      "exception',)"}}]},
E                                  'type': 'ValueError',
E                                  'value': 'This is a test exception'}]},
E        'extra': {'extra1': 'extra1_value',
E                  'extra2': 'extra2_value',
E                  'should_be_removed_by_event_scrubber': '[Filtered]',
E                  'sys.argv': '[Filtered]'},
E        'level': 'warning-X',
E     -  'modules': <ANY>,
E     +  'modules': {'anyio': '3.6.2',
E     +              'asttokens': '2.4.1',
E     +              'attrs': '22.2.0',
E     +              'brotli': '1.1.0',
E     +              'certifi': '2025.4.26',
E     +              'charset-normalizer': '2.0.12',
E     +              'colorama': '0.4.5',
E     +              'contextvars': '2.4',
E     +              'coverage': '6.2',
E     +              'dataclasses': '0.8',
E     +              'docker': '5.0.3',
E     +              'docopt': '0.6.2',
E     +              'executing': '2.0.1',
E     +              'h11': '0.12.0',
E     +              'h2': '4.1.0',
E     +              'hpack': '4.0.0',
E     +              'httpcore': '0.14.7',
E     +              'hyperframe': '6.0.1',
E     +              'idna': '3.10',
E     +              'immutables': '0.19',
E     +              'importlib-metadata': '4.8.3',
E     +              'iniconfig': '1.1.1',
E     +              'jsonschema': '3.2.0',
E     +              'packaging': '21.3',
E     +              'pip': '21.3.1',
E     +              'pluggy': '1.0.0',
E     +              'py': '1.11.0',
E     +              'pyparsing': '3.1.4',
E     +              'pyrsistent': '0.18.0',
E     +              'pysocks': '1.7.1',
E     +              'pytest': '6.2.5',
E     +              'pytest-asyncio': '0.16.0',
E     +              'pytest-cov': '4.0.0',
E     +              'pytest-forked': '1.4.0',
E     +              'pytest-localserver': '0.9.0.post0',
E     +              'pytest-watch': '4.2.0',
E     +              'requests': '2.27.1',
E     +              'responses': '0.17.0',
E     +              'sentry-sdk': '2.42.1',
E     +              'setuptools': '59.6.0',
E     +              'six': '1.17.0',
E     +              'sniffio': '1.2.0',
E     +              'socksio': '1.0.0',
E     +              'toml': '0.10.2',
E     +              'tomli': '1.2.3',
E     +              'typing-extensions': '4.1.1',
E     +              'urllib3': '1.26.20',
E     +              'watchdog': '2.3.1',
E     +              'websocket-client': '1.3.1',
E     +              'werkzeug': '2.0.3',
E     +              'wheel': '0.37.1',
E     +              'zipp': '3.6.0'},
E        'platform': 'python',
E        'release': '0.1.2rc3',
E        'sdk': {'integrations': ['argv',
E                                 'atexit',
E                                 'dedupe',
E                                 'excepthook',
E                                 'logging',
E                                 'modules',
E                                 'stdlib',
E                                 'threading'],
E                'name': 'sentry.python',
E                'packages': [{'name': 'pypi:sentry-sdk',
E     -                        'version': <ANY>}],
E     ?                                   ^^^^^
E     +                        'version': '2.42.1'}],
E     ?                                   ^^^^^^^^
E     -          'version': <ANY>},
E     ?                     ^^^^^
E     +          'version': '2.42.1'},
E     ?                     ^^^^^^^^
E     -  'server_name': <ANY>,
E     +  'server_name': '88fcdc08b64f',
E        'tags': {'tag1': 'tag1_value',
E                 'tag2': 'tag2_value'},
E     -  'timestamp': <ANY>,
E     +  'timestamp': '2025-10-20T14:59:28.967693Z',
E        'transaction': 'test_transaction',
E     -  'transaction_info': {'source': 'custom'},
E     +  'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E     ?                                 +++++++++++++++++++++++++++        +
E        'user': {'email': '[email protected]',
E                 'id': '123',
E                 'ip_address': '[Filtered]'},
E       }
tests.new_scopes_compat.test_new_scopes_compat_event::test_event
Stack Traces | 0.028s run time
tests/new_scopes_compat/test_new_scopes_compat_event.py:352: in test_event
    assert error == expected_error(trx, span)
E   assert {'_meta': {},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': '2025-10-20T14:59:28.928830Z',\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'\n                                   '[GCC 10.2.1 20210110]',\n                          'name': 'CPython',\n                          'version': '3.6.15'},\n              'trace': {'data': {'thread.id': '139650522523456',\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': 'b339bdf490ac9620',\n                        'span_id': 'a7e8eead1047202d',\n                        'trace_id': 'f56458ad265542ea992f2fedcbed84fd'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': '992e62699da6489fa0d23a4b32620da4',\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': 244,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': "ValueError('This "\n                                                                     'is a '\n                                                                     'test '\n                                                                     "exception',)"}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': {'anyio': '3.6.2',\n             'asttokens': '2.4.1',\n             'attrs': '22.2.0',\n             'brotli': '1.1.0',\n             'certifi': '2025.4.26',\n             'charset-normalizer': '2.0.12',\n             'colorama': '0.4.5',\n             'contextvars': '2.4',\n             'coverage': '6.2',\n             'dataclasses': '0.8',\n             'docker': '5.0.3',\n             'docopt': '0.6.2',\n             'executing': '2.0.1',\n             'h11': '0.12.0',\n             'h2': '4.1.0',\n             'hpack': '4.0.0',\n             'httpcore': '0.14.7',\n             'hyperframe': '6.0.1',\n             'idna': '3.10',\n             'immutables': '0.19',\n             'importlib-metadata': '4.8.3',\n             'iniconfig': '1.1.1',\n             'jsonschema': '3.2.0',\n             'packaging': '21.3',\n             'pip': '21.3.1',\n             'pluggy': '1.0.0',\n             'py': '1.11.0',\n             'pyparsing': '3.1.4',\n             'pyrsistent': '0.18.0',\n             'pysocks': '1.7.1',\n             'pytest': '6.2.5',\n             'pytest-asyncio': '0.16.0',\n             'pytest-cov': '4.0.0',\n             'pytest-forked': '1.4.0',\n             'pytest-localserver': '0.9.0.post0',\n             'pytest-watch': '4.2.0',\n             'requests': '2.27.1',\n             'responses': '0.17.0',\n             'sentry-sdk': '2.42.1',\n             'setuptools': '59.6.0',\n             'six': '1.17.0',\n             'sniffio': '1.2.0',\n             'socksio': '1.0.0',\n             'toml': '0.10.2',\n             'tomli': '1.2.3',\n             'typing-extensions': '4.1.1',\n             'urllib3': '1.26.20',\n             'watchdog': '2.3.1',\n             'websocket-client': '1.3.1',\n             'werkzeug': '2.0.3',\n             'wheel': '0.37.1',\n             'zipp': '3.6.0'},\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],\n         'version': '2.42.1'},\n 'server_name': '88fcdc08b64f',\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': '2025-10-20T14:59:28.929416Z',\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}} == {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',\n                                                                           's']]}},\n                     'sys.argv': {'': {'rem': [['!config', 's']]}}},\n           'user': {'ip_address': {'': {'rem': [['!config', 's']]}}}},\n 'breadcrumbs': {'values': [{'category': 'error-level',\n                             'data': {'breadcrumb2': 'somedata'},\n                             'level': 'error',\n                             'message': 'Authenticated user %s',\n                             'timestamp': <ANY>,\n                             'type': 'default'}]},\n 'contexts': {'character': {'age': 19,\n                            'attack_type': 'melee',\n                            'name': 'Mighty Fighter changed by before_send'},\n              'runtime': {'build': <ANY>, 'name': 'CPython', 'version': <ANY>},\n              'trace': {'data': {'thread.id': <ANY>,\n                                 'thread.name': 'MainThread'},\n                        'description': None,\n                        'op': 'test_span',\n                        'origin': 'manual',\n                        'parent_span_id': 'b339bdf490ac9620',\n                        'span_id': 'a7e8eead1047202d',\n                        'trace_id': 'f56458ad265542ea992f2fedcbed84fd'}},\n 'environment': 'checking-compatibility-with-sdk1',\n 'event_id': <ANY>,\n 'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},\n                           'module': None,\n                           'stacktrace': {'frames': [{'abs_path': <ANY>,\n                                                      'context_line': '        '\n                                                                      'raise '\n                                                                      'ValueError("This '\n                                                                      'is a '\n                                                                      'test '\n                                                                      'exception")',\n                                                      'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',\n                                                      'function': '_faulty_function',\n                                                      'in_app': True,\n                                                      'lineno': <ANY>,\n                                                      'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',\n                                                      'post_context': ['    '\n                                                                       'except '\n                                                                       'ValueError '\n                                                                       'as ex:',\n                                                                       '        '\n                                                                       'sentry_sdk.capture_exception(ex)',\n                                                                       '',\n                                                                       '',\n                                                                       'def '\n                                                                       '_test_before_send(event, '\n                                                                       'hint):'],\n                                                      'pre_context': ['    '\n                                                                      'return '\n                                                                      'create_expected_transaction_event',\n                                                                      '',\n                                                                      '',\n                                                                      'def '\n                                                                      '_faulty_function():',\n                                                                      '    '\n                                                                      'try:'],\n                                                      'vars': {'ex': <ANY>}}]},\n                           'type': 'ValueError',\n                           'value': 'This is a test exception'}]},\n 'extra': {'extra1': 'extra1_value',\n           'extra2': 'extra2_value',\n           'should_be_removed_by_event_scrubber': '[Filtered]',\n           'sys.argv': '[Filtered]'},\n 'level': 'warning-X',\n 'modules': <ANY>,\n 'platform': 'python',\n 'release': '0.1.2rc3',\n 'sdk': {'integrations': ['argv',\n                          'atexit',\n                          'dedupe',\n                          'excepthook',\n                          'logging',\n                          'modules',\n                          'stdlib',\n                          'threading'],\n         'name': 'sentry.python',\n         'packages': [{'name': 'pypi:sentry-sdk', 'version': <ANY>}],\n         'version': <ANY>},\n 'server_name': <ANY>,\n 'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},\n 'timestamp': <ANY>,\n 'transaction': 'test_transaction',\n 'transaction_info': {'source': 'custom'},\n 'user': {'email': '[email protected]',\n          'id': '123',\n          'ip_address': '[Filtered]'}}
E     Common items:
E     {'breadcrumbs': {'values': [{'category': 'error-level',
E                                  'data': {'breadcrumb2': 'somedata'},
E                                  'level': 'error',
E                                  'message': 'Authenticated user %s',
E                                  'timestamp': '2025-10-20T14:59:28.928830Z',
E                                  'type': 'default'}]},
E      'contexts': {'character': {'age': 19,
E                                 'attack_type': 'melee',
E                                 'name': 'Mighty Fighter changed by before_send'},
E                   'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E                                        '[GCC 10.2.1 20210110]',
E                               'name': 'CPython',
E                               'version': '3.6.15'},
E                   'trace': {'data': {'thread.id': '139650522523456',
E                                      'thread.name': 'MainThread'},
E                             'description': None,
E                             'op': 'test_span',
E                             'origin': 'manual',
E                             'parent_span_id': 'b339bdf490ac9620',
E                             'span_id': 'a7e8eead1047202d',
E                             'trace_id': 'f56458ad265542ea992f2fedcbed84fd'}},
E      'environment': 'checking-compatibility-with-sdk1',
E      'event_id': '992e62699da6489fa0d23a4b32620da4',
E      'exception': {'values': [{'mechanism': {'handled': True, 'type': 'generic'},
E                                'module': None,
E                                'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'context_line': '        '
E                                                                           'raise '
E                                                                           'ValueError("This '
E                                                                           'is a '
E                                                                           'test '
E                                                                           'exception")',
E                                                           'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                           'function': '_faulty_function',
E                                                           'in_app': True,
E                                                           'lineno': 244,
E                                                           'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                           'post_context': ['    '
E                                                                            'except '
E                                                                            'ValueError '
E                                                                            'as ex:',
E                                                                            '        '
E                                                                            'sentry_sdk.capture_exception(ex)',
E                                                                            '',
E                                                                            '',
E                                                                            'def '
E                                                                            '_test_before_send(event, '
E                                                                            'hint):'],
E                                                           'pre_context': ['    '
E                                                                           'return '
E                                                                           'create_expected_transaction_event',
E                                                                           '',
E                                                                           '',
E                                                                           'def '
E                                                                           '_faulty_function():',
E                                                                           '    '
E                                                                           'try:'],
E                                                           'vars': {'ex': "ValueError('This "
E                                                                          'is a '
E                                                                          'test '
E                                                                          "exception',)"}}]},
E                                'type': 'ValueError',
E                                'value': 'This is a test exception'}]},
E      'extra': {'extra1': 'extra1_value',
E                'extra2': 'extra2_value',
E                'should_be_removed_by_event_scrubber': '[Filtered]',
E                'sys.argv': '[Filtered]'},
E      'level': 'warning-X',
E      'modules': {'anyio': '3.6.2',
E                  'asttokens': '2.4.1',
E                  'attrs': '22.2.0',
E                  'brotli': '1.1.0',
E                  'certifi': '2025.4.26',
E                  'charset-normalizer': '2.0.12',
E                  'colorama': '0.4.5',
E                  'contextvars': '2.4',
E                  'coverage': '6.2',
E                  'dataclasses': '0.8',
E                  'docker': '5.0.3',
E                  'docopt': '0.6.2',
E                  'executing': '2.0.1',
E                  'h11': '0.12.0',
E                  'h2': '4.1.0',
E                  'hpack': '4.0.0',
E                  'httpcore': '0.14.7',
E                  'hyperframe': '6.0.1',
E                  'idna': '3.10',
E                  'immutables': '0.19',
E                  'importlib-metadata': '4.8.3',
E                  'iniconfig': '1.1.1',
E                  'jsonschema': '3.2.0',
E                  'packaging': '21.3',
E                  'pip': '21.3.1',
E                  'pluggy': '1.0.0',
E                  'py': '1.11.0',
E                  'pyparsing': '3.1.4',
E                  'pyrsistent': '0.18.0',
E                  'pysocks': '1.7.1',
E                  'pytest': '6.2.5',
E                  'pytest-asyncio': '0.16.0',
E                  'pytest-cov': '4.0.0',
E                  'pytest-forked': '1.4.0',
E                  'pytest-localserver': '0.9.0.post0',
E                  'pytest-watch': '4.2.0',
E                  'requests': '2.27.1',
E                  'responses': '0.17.0',
E                  'sentry-sdk': '2.42.1',
E                  'setuptools': '59.6.0',
E                  'six': '1.17.0',
E                  'sniffio': '1.2.0',
E                  'socksio': '1.0.0',
E                  'toml': '0.10.2',
E                  'tomli': '1.2.3',
E                  'typing-extensions': '4.1.1',
E                  'urllib3': '1.26.20',
E                  'watchdog': '2.3.1',
E                  'websocket-client': '1.3.1',
E                  'werkzeug': '2.0.3',
E                  'wheel': '0.37.1',
E                  'zipp': '3.6.0'},
E      'platform': 'python',
E      'release': '0.1.2rc3',
E      'sdk': {'integrations': ['argv',
E                               'atexit',
E                               'dedupe',
E                               'excepthook',
E                               'logging',
E                               'modules',
E                               'stdlib',
E                               'threading'],
E              'name': 'sentry.python',
E              'packages': [{'name': 'pypi:sentry-sdk', 'version': '2.42.1'}],
E              'version': '2.42.1'},
E      'server_name': '88fcdc08b64f',
E      'tags': {'tag1': 'tag1_value', 'tag2': 'tag2_value'},
E      'timestamp': '2025-10-20T14:59:28.929416Z',
E      'transaction': 'test_transaction',
E      'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E      'user': {'email': '[email protected]',
E               'id': '123',
E               'ip_address': '[Filtered]'}}
E     Differing items:
E     {'_meta': {}} != {'_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [[...]]}}, 'sys.argv': {'': {'rem': [[...]]}}}, 'user': {'ip_address': {'': {'rem': [[...]]}}}}}
E     Full diff:
E       {
E     +  '_meta': {},
E     -  '_meta': {'extra': {'should_be_removed_by_event_scrubber': {'': {'rem': [['!config',
E     -                                                                            's']]}},
E     -                      'sys.argv': {'': {'rem': [['!config',
E     -                                                 's']]}}},
E     -            'user': {'ip_address': {'': {'rem': [['!config',
E     -                                                  's']]}}}},
E        'breadcrumbs': {'values': [{'category': 'error-level',
E                                    'data': {'breadcrumb2': 'somedata'},
E                                    'level': 'error',
E                                    'message': 'Authenticated user %s',
E     -                              'timestamp': <ANY>,
E     +                              'timestamp': '2025-10-20T14:59:28.928830Z',
E                                    'type': 'default'}]},
E        'contexts': {'character': {'age': 19,
E                                   'attack_type': 'melee',
E                                   'name': 'Mighty Fighter changed by before_send'},
E     -               'runtime': {'build': <ANY>,
E     +               'runtime': {'build': '3.6.15 (default, Dec 21 2021, 12:03:22) \n'
E     +                                    '[GCC 10.2.1 20210110]',
E                                 'name': 'CPython',
E     -                           'version': <ANY>},
E     ?                                      ^^^^^
E     +                           'version': '3.6.15'},
E     ?                                      ^^^^^^^^
E     -               'trace': {'data': {'thread.id': <ANY>,
E     ?                                               ^^^^^
E     +               'trace': {'data': {'thread.id': '139650522523456',
E     ?                                               ^^^^^^^^^^^^^^^^^
E                                        'thread.name': 'MainThread'},
E                               'description': None,
E                               'op': 'test_span',
E                               'origin': 'manual',
E                               'parent_span_id': 'b339bdf490ac9620',
E                               'span_id': 'a7e8eead1047202d',
E                               'trace_id': 'f56458ad265542ea992f2fedcbed84fd'}},
E        'environment': 'checking-compatibility-with-sdk1',
E     -  'event_id': <ANY>,
E     +  'event_id': '992e62699da6489fa0d23a4b32620da4',
E        'exception': {'values': [{'mechanism': {'handled': True,
E                                                'type': 'generic'},
E                                  'module': None,
E     -                            'stacktrace': {'frames': [{'abs_path': <ANY>,
E     +                            'stacktrace': {'frames': [{'abs_path': '.../tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'context_line': '        '
E                                                                             'raise '
E                                                                             'ValueError("This '
E                                                                             'is a '
E                                                                             'test '
E                                                                             'exception")',
E                                                             'filename': 'tests/new_scopes_compat/test_new_scopes_compat_event.py',
E                                                             'function': '_faulty_function',
E                                                             'in_app': True,
E     -                                                       'lineno': <ANY>,
E     ?                                                                 ^^^^^
E     +                                                       'lineno': 244,
E     ?                                                                 ^^^
E                                                             'module': 'tests.new_scopes_compat.test_new_scopes_compat_event',
E                                                             'post_context': ['    '
E                                                                              'except '
E                                                                              'ValueError '
E                                                                              'as ex:',
E                                                                              '        '
E                                                                              'sentry_sdk.capture_exception(ex)',
E                                                                              '',
E                                                                              '',
E                                                                              'def '
E                                                                              '_test_before_send(event, '
E                                                                              'hint):'],
E                                                             'pre_context': ['    '
E                                                                             'return '
E                                                                             'create_expected_transaction_event',
E                                                                             '',
E                                                                             '',
E                                                                             'def '
E                                                                             '_faulty_function():',
E                                                                             '    '
E                                                                             'try:'],
E     -                                                       'vars': {'ex': <ANY>}}]},
E     ?                                                                      ^^^^^^^^^^
E     +                                                       'vars': {'ex': "ValueError('This "
E     ?                                                                      ^^^^^^^^^^^^^^^^^^^
E     +                                                                      'is a '
E     +                                                                      'test '
E     +                                                                      "exception',)"}}]},
E                                  'type': 'ValueError',
E                                  'value': 'This is a test exception'}]},
E        'extra': {'extra1': 'extra1_value',
E                  'extra2': 'extra2_value',
E                  'should_be_removed_by_event_scrubber': '[Filtered]',
E                  'sys.argv': '[Filtered]'},
E        'level': 'warning-X',
E     -  'modules': <ANY>,
E     +  'modules': {'anyio': '3.6.2',
E     +              'asttokens': '2.4.1',
E     +              'attrs': '22.2.0',
E     +              'brotli': '1.1.0',
E     +              'certifi': '2025.4.26',
E     +              'charset-normalizer': '2.0.12',
E     +              'colorama': '0.4.5',
E     +              'contextvars': '2.4',
E     +              'coverage': '6.2',
E     +              'dataclasses': '0.8',
E     +              'docker': '5.0.3',
E     +              'docopt': '0.6.2',
E     +              'executing': '2.0.1',
E     +              'h11': '0.12.0',
E     +              'h2': '4.1.0',
E     +              'hpack': '4.0.0',
E     +              'httpcore': '0.14.7',
E     +              'hyperframe': '6.0.1',
E     +              'idna': '3.10',
E     +              'immutables': '0.19',
E     +              'importlib-metadata': '4.8.3',
E     +              'iniconfig': '1.1.1',
E     +              'jsonschema': '3.2.0',
E     +              'packaging': '21.3',
E     +              'pip': '21.3.1',
E     +              'pluggy': '1.0.0',
E     +              'py': '1.11.0',
E     +              'pyparsing': '3.1.4',
E     +              'pyrsistent': '0.18.0',
E     +              'pysocks': '1.7.1',
E     +              'pytest': '6.2.5',
E     +              'pytest-asyncio': '0.16.0',
E     +              'pytest-cov': '4.0.0',
E     +              'pytest-forked': '1.4.0',
E     +              'pytest-localserver': '0.9.0.post0',
E     +              'pytest-watch': '4.2.0',
E     +              'requests': '2.27.1',
E     +              'responses': '0.17.0',
E     +              'sentry-sdk': '2.42.1',
E     +              'setuptools': '59.6.0',
E     +              'six': '1.17.0',
E     +              'sniffio': '1.2.0',
E     +              'socksio': '1.0.0',
E     +              'toml': '0.10.2',
E     +              'tomli': '1.2.3',
E     +              'typing-extensions': '4.1.1',
E     +              'urllib3': '1.26.20',
E     +              'watchdog': '2.3.1',
E     +              'websocket-client': '1.3.1',
E     +              'werkzeug': '2.0.3',
E     +              'wheel': '0.37.1',
E     +              'zipp': '3.6.0'},
E        'platform': 'python',
E        'release': '0.1.2rc3',
E        'sdk': {'integrations': ['argv',
E                                 'atexit',
E                                 'dedupe',
E                                 'excepthook',
E                                 'logging',
E                                 'modules',
E                                 'stdlib',
E                                 'threading'],
E                'name': 'sentry.python',
E                'packages': [{'name': 'pypi:sentry-sdk',
E     -                        'version': <ANY>}],
E     ?                                   ^^^^^
E     +                        'version': '2.42.1'}],
E     ?                                   ^^^^^^^^
E     -          'version': <ANY>},
E     ?                     ^^^^^
E     +          'version': '2.42.1'},
E     ?                     ^^^^^^^^
E     -  'server_name': <ANY>,
E     +  'server_name': '88fcdc08b64f',
E        'tags': {'tag1': 'tag1_value',
E                 'tag2': 'tag2_value'},
E     -  'timestamp': <ANY>,
E     +  'timestamp': '2025-10-20T14:59:28.929416Z',
E        'transaction': 'test_transaction',
E     -  'transaction_info': {'source': 'custom'},
E     +  'transaction_info': {'source': <TransactionSource.CUSTOM: 'custom'>},
E     ?                                 +++++++++++++++++++++++++++        +
E        'user': {'email': '[email protected]',
E                 'id': '123',
E                 'ip_address': '[Filtered]'},
E       }
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a0]
Stack Traces | 0.064s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a0]
Stack Traces | 0.064s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a1]
Stack Traces | 0.064s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a1]
Stack Traces | 0.064s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_files_and_form
Stack Traces | 0.065s run time
.../integrations/bottle/test_bottle.py:269: in test_files_and_form
    assert event["_meta"]["request"]["data"]["foo"] == {
E   KeyError: 'request'
tests.integrations.django.test_basic::test_request_body
Stack Traces | 0.065s run time
.../integrations/django/test_basic.py:748: in test_request_body
    assert event["_meta"]["request"]["data"][""] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_files_and_form
Stack Traces | 0.066s run time
.../integrations/bottle/test_bottle.py:269: in test_files_and_form
    assert event["_meta"]["request"]["data"]["foo"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_large_json_request
Stack Traces | 0.066s run time
.../integrations/bottle/test_bottle.py:147: in test_large_json_request
    assert event["_meta"]["request"]["data"]["foo"]["bar"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_files_and_form
Stack Traces | 0.067s run time
.../integrations/bottle/test_bottle.py:269: in test_files_and_form
    assert event["_meta"]["request"]["data"]["foo"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_large_json_request
Stack Traces | 0.067s run time
.../integrations/bottle/test_bottle.py:147: in test_large_json_request
    assert event["_meta"]["request"]["data"]["foo"]["bar"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a0]
Stack Traces | 0.067s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_large_json_request
Stack Traces | 0.068s run time
.../integrations/bottle/test_bottle.py:147: in test_large_json_request
    assert event["_meta"]["request"]["data"]["foo"]["bar"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_medium_formdata_request
Stack Traces | 0.069s run time
.../integrations/bottle/test_bottle.py:202: in test_medium_formdata_request
    assert event["_meta"]["request"]["data"]["foo"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_medium_formdata_request
Stack Traces | 0.07s run time
.../integrations/bottle/test_bottle.py:202: in test_medium_formdata_request
    assert event["_meta"]["request"]["data"]["foo"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_medium_formdata_request
Stack Traces | 0.07s run time
.../integrations/bottle/test_bottle.py:202: in test_medium_formdata_request
    assert event["_meta"]["request"]["data"]["foo"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a1]
Stack Traces | 0.07s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
E   KeyError: 'request'
tests.integrations.django.test_basic::test_request_body
Stack Traces | 0.075s run time
.../integrations/django/test_basic.py:748: in test_request_body
    assert event["_meta"]["request"]["data"][""] == {
E   KeyError: 'request'
tests.test_scrubber::test_breadcrumb_extra_scrubbing
Stack Traces | 0.075s run time
tests/test_scrubber.py:142: in test_breadcrumb_extra_scrubbing
    assert event["_meta"]["extra"]["auth"] == {"": {"rem": [["!config", "s"]]}}
E   KeyError: 'extra'
tests.test_scrubber::test_custom_denylist
Stack Traces | 0.075s run time
tests/test_scrubber.py:194: in test_custom_denylist
    meta = event["_meta"]["exception"]["values"]["0"]["stacktrace"]["frames"]["0"][
E   KeyError: 'exception'
tests.test_scrubber::test_stack_var_scrubbing
Stack Traces | 0.075s run time
tests/test_scrubber.py:112: in test_stack_var_scrubbing
    meta = event["_meta"]["exception"]["values"]["0"]["stacktrace"]["frames"]["0"][
E   KeyError: 'exception'
tests.test_scrubber::test_request_scrubbing
Stack Traces | 0.076s run time
tests/test_scrubber.py:55: in test_request_scrubbing
    assert event["_meta"]["request"] == {
E   KeyError: 'request'
tests.test_scrubber::test_span_data_scrubbing
Stack Traces | 0.076s run time
tests/test_scrubber.py:165: in test_span_data_scrubbing
    assert event["_meta"]["spans"] == {
E   KeyError: 'spans'
tests.test_scrubber::test_ip_address_not_scrubbed_when_pii_enabled
Stack Traces | 0.077s run time
tests/test_scrubber.py:85: in test_ip_address_not_scrubbed_when_pii_enabled
    assert event["_meta"]["request"] == {
E   KeyError: 'request'
tests.tracing.test_misc::test_span_data_scrubbing_and_trimming
Stack Traces | 0.078s run time
tests/tracing/test_misc.py:57: in test_span_data_scrubbing_and_trimming
    assert event["_meta"]["spans"] == {
E   KeyError: 'spans'
tests.tracing.test_misc::test_span_trimming
Stack Traces | 0.078s run time
tests/tracing/test_misc.py:35: in test_span_trimming
    assert event["_meta"]["spans"][""]["len"] == 10
E   KeyError: 'spans'
tests.integrations.falcon.test_falcon::test_falcon_large_json_request
Stack Traces | 0.08s run time
.../integrations/falcon/test_falcon.py:231: in test_falcon_large_json_request
    assert event["_meta"]["request"]["data"]["foo"]["bar"] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.django.test_basic::test_request_body
Stack Traces | 0.081s run time
.../integrations/django/test_basic.py:748: in test_request_body
    assert event["_meta"]["request"]["data"][""] == {
E   KeyError: 'request'
tests.integrations.django.test_basic::test_request_body
Stack Traces | 0.082s run time
.../integrations/django/test_basic.py:748: in test_request_body
    assert event["_meta"]["request"]["data"][""] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.pyramid.test_pyramid::test_large_json_request
Stack Traces | 0.087s run time
.../integrations/pyramid/test_pyramid.py:178: in test_large_json_request
    assert event["_meta"]["request"]["data"]["foo"]["bar"] == {
E   KeyError: 'request'
tests.integrations.pyramid.test_pyramid::test_files_and_form
Stack Traces | 0.091s run time
.../integrations/pyramid/test_pyramid.py:255: in test_files_and_form
    assert event["_meta"]["request"]["data"]["foo"] == {
E   KeyError: 'request'
tests.integrations.pyramid.test_pyramid::test_files_and_form
Stack Traces | 0.093s run time
.../integrations/pyramid/test_pyramid.py:255: in test_files_and_form
    assert event["_meta"]["request"]["data"]["foo"] == {
E   KeyError: 'request'
tests.integrations.pyramid.test_pyramid::test_large_json_request
Stack Traces | 0.093s run time
.../integrations/pyramid/test_pyramid.py:178: in test_large_json_request
    assert event["_meta"]["request"]["data"]["foo"]["bar"] == {
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a0]
Stack Traces | 0.095s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a1]
Stack Traces | 0.095s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_large_json_request
Stack Traces | 0.096s run time
.../integrations/bottle/test_bottle.py:147: in test_large_json_request
    assert event["_meta"]["request"]["data"]["foo"]["bar"] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_large_json_request
Stack Traces | 0.097s run time
.../integrations/bottle/test_bottle.py:147: in test_large_json_request
    assert event["_meta"]["request"]["data"]["foo"]["bar"] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a1]
Stack Traces | 0.098s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_too_large_raw_request[a0]
Stack Traces | 0.099s run time
.../integrations/bottle/test_bottle.py:240: in test_too_large_raw_request
    assert event["_meta"]["request"]["data"] == {"": {"rem": [["!config", "x"]]}}
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_files_and_form
Stack Traces | 0.1s run time
.../integrations/bottle/test_bottle.py:269: in test_files_and_form
    assert event["_meta"]["request"]["data"]["foo"] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.django.test_basic::test_request_body
Stack Traces | 0.101s run time
.../integrations/django/test_basic.py:748: in test_request_body
    assert event["_meta"]["request"]["data"][""] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_files_and_form
Stack Traces | 0.102s run time
.../integrations/bottle/test_bottle.py:269: in test_files_and_form
    assert event["_meta"]["request"]["data"]["foo"] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_medium_formdata_request
Stack Traces | 0.102s run time
.../integrations/bottle/test_bottle.py:202: in test_medium_formdata_request
    assert event["_meta"]["request"]["data"]["foo"] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.bottle.test_bottle::test_medium_formdata_request
Stack Traces | 0.106s run time
.../integrations/bottle/test_bottle.py:202: in test_medium_formdata_request
    assert event["_meta"]["request"]["data"]["foo"] == {
           ^^^^^^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'request'
tests.integrations.anthropic.test_anthropic::test_anthropic_message_truncation
Stack Traces | 0.108s run time
.../integrations/anthropic/test_anthropic.py:996: in test_anthropic_message_truncation
    assert tx["_meta"]["spans"]["0"]["data"]["gen_ai.request.messages"][""]["len"] == 5
           ^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'spans'
tests.integrations.anthropic.test_anthropic::test_anthropic_message_truncation
Stack Traces | 0.122s run time
.../integrations/anthropic/test_anthropic.py:996: in test_anthropic_message_truncation
    assert tx["_meta"]["spans"]["0"]["data"]["gen_ai.request.messages"][""]["len"] == 5
           ^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'spans'
tests.integrations.anthropic.test_anthropic::test_anthropic_message_truncation
Stack Traces | 0.197s run time
.../integrations/anthropic/test_anthropic.py:996: in test_anthropic_message_truncation
    assert tx["_meta"]["spans"]["0"]["data"]["gen_ai.request.messages"][""]["len"] == 5
           ^^^^^^^^^^^^^^^^^^^^
E   KeyError: 'spans'
View the full list of 1 ❄️ flaky test(s)
tests.integrations.django.test_basic::test_request_body

Flake rate in main: 100.00% (Passed 0 times, Failed 34 times)

Stack Traces | 0.087s run time
.../integrations/django/test_basic.py:748: in test_request_body
    assert event["_meta"]["request"]["data"][""] == {
E   KeyError: 'request'

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Comment on lines 541 to 545
try:
return repr(value)
except Exception:
except Exception as e:
print(e)
return "<broken repr>"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception is encountered locally but not in CI.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants