Skip to content

Commit 57931aa

Browse files
committed
Remove unsupported SPANSTATUS.ERROR
1 parent 804af29 commit 57931aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integrations/anthropic/test_anthropic.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

707707
def 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

773773
def test_span_origin(sentry_init, capture_events):

0 commit comments

Comments
 (0)