Skip to content

do not pass processed model

f88357c
Select commit
Loading
Failed to load commit list.
Merged

feat(anthropic): Emit AI Client Spans for synchronous messages.stream() #5565

do not pass processed model
f88357c
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden: find-bugs completed Mar 13, 2026 in 6m 56s

2 issues

find-bugs: Found 2 issues (2 low)

Low

Test missing assertion for GEN_AI_SYSTEM span attribute - `tests/integrations/anthropic/test_anthropic.py:418-423`

The new test_stream_messages test omits the assertion for SPANDATA.GEN_AI_SYSTEM == "anthropic" that exists in the similar test_streaming_create_message test (line 306). Since _set_common_input_data sets this attribute, the test should verify it is correctly populated to ensure parity with the existing streaming test coverage.

Also found at:

  • tests/integrations/anthropic/test_anthropic.py:438-439
Comment contains function name instead of expected value - `tests/integrations/anthropic/test_anthropic.py:2919`

The comment at line 2919 was corrupted during editing. It reads # input_tokens should be total: 19 + 2846 = test_stream_messages_input_tokens_include_cache_read_streaming but should read # input_tokens should be total: 19 + 2846 = 2865. This appears to be a copy-paste error where the function name replaced the numeric result. While not a runtime bug, it creates misleading documentation.


Duration: 6m 50s · Tokens: 2.1M in / 20.8k out · Cost: $3.02 (+extraction: $0.00, +merge: $0.00, +fix_gate: $0.01)