Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions sentry_sdk/integrations/anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ def new_iterator():
input_tokens, output_tokens, content_blocks = _collect_ai_data(
event, input_tokens, output_tokens, content_blocks
)
if event.type != "message_stop":
yield event
yield event

_add_ai_data_to_span(
span, integration, input_tokens, output_tokens, content_blocks
Expand All @@ -202,8 +201,7 @@ async def new_iterator_async():
input_tokens, output_tokens, content_blocks = _collect_ai_data(
event, input_tokens, output_tokens, content_blocks
)
if event.type != "message_stop":
yield event
yield event

_add_ai_data_to_span(
span, integration, input_tokens, output_tokens, content_blocks
Expand Down
Loading