@@ -701,7 +701,7 @@ def test_exception_message_create(sentry_init, capture_events):
701701
702702 (event , transaction ) = events
703703 assert event ["level" ] == "error"
704- assert transaction ["contexts" ]["trace" ]["status" ] == "error "
704+ assert transaction ["contexts" ]["trace" ]["status" ] == "internal_error "
705705
706706
707707def test_span_status_error (sentry_init , capture_events ):
@@ -722,8 +722,8 @@ def test_span_status_error(sentry_init, capture_events):
722722
723723 (error , transaction ) = events
724724 assert error ["level" ] == "error"
725- assert transaction ["spans" ][0 ]["tags" ]["status" ] == "error "
726- assert transaction ["contexts" ]["trace" ]["status" ] == "error "
725+ assert transaction ["spans" ][0 ]["tags" ]["status" ] == "internal_error "
726+ assert transaction ["contexts" ]["trace" ]["status" ] == "internal_error "
727727
728728
729729@pytest .mark .asyncio
@@ -745,8 +745,8 @@ async def test_span_status_error_async(sentry_init, capture_events):
745745
746746 (error , transaction ) = events
747747 assert error ["level" ] == "error"
748- assert transaction ["spans" ][0 ]["tags" ]["status" ] == "error "
749- assert transaction ["contexts" ]["trace" ]["status" ] == "error "
748+ assert transaction ["spans" ][0 ]["tags" ]["status" ] == "internal_error "
749+ assert transaction ["contexts" ]["trace" ]["status" ] == "internal_error "
750750
751751
752752@pytest .mark .asyncio
@@ -767,7 +767,7 @@ async def test_exception_message_create_async(sentry_init, capture_events):
767767
768768 (event , transaction ) = events
769769 assert event ["level" ] == "error"
770- assert transaction ["contexts" ]["trace" ]["status" ] == "error "
770+ assert transaction ["contexts" ]["trace" ]["status" ] == "internal_error "
771771
772772
773773def test_span_origin (sentry_init , capture_events ):
0 commit comments