Skip to content

feat(anthropic): Set gen_ai.usage.output_tokens.reasoning attributes for streaming responses - #8330

Merged
srothh merged 4 commits into
srothh/anthropic-output-tokens-reasoning-attributesfrom
srothh/anthropic-output-tokens-reasoning-streaming
Nov 19, 2026
Merged

srothh merged 4 commits into
srothh/anthropic-output-tokens-reasoning-attributesfrom
srothh/anthropic-output-tokens-reasoning-streaming

Conversation

@srothh

@srothh srothh commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Description

feat(anthropic): Set gen_ai.usage.output_tokens.reasoning attributes for streaming responses

@srothh
srothh marked this pull request as ready for review November 18, 2026 14:38
@srothh
srothh requested a review from a team as a code owner November 18, 2026 14:38
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 139437 passed | ⏭️ 7905 skipped | Total: 147342 | Pass Rate: 94.63% | Execution Time: 840m 13s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +181
Passed Tests 📈 +134
Failed Tests 📉 -1
Skipped Tests 📈 +48

All tests are passing successfully.

✅ Patch coverage is 88.89% (8 of 9 changed executable lines covered; target 80%).
Project statement coverage is 90.25% (up 0.03 percentage points from base (fea2b61) to head (a5bf844)).

Changed files with executable lines (1)
File Patch coverage Changed executable lines
sentry_sdk/integrations/anthropic.py 88.89% 8/9 covered; missed: 434; partial branches: 433
Coverage diff
@@            Coverage Diff             @@
##        master     #8330       +/-##
==========================================
+ Coverage    90.22%    90.25%    +0.03%
==========================================
  Files          203       203         —
  Tracked lines     27333     27346       +13
  Branches     10242     10252       +10
==========================================
+ Hits         24660     24679       +19
+ Misses        2673      2667        -6
- Partials      1556      1557        +1

Generated by Coverage Action

@srothh
srothh force-pushed the srothh/anthropic-output-tokens-reasoning-streaming branch from f1a8be7 to a5bf844 Compare November 18, 2026 15:26

@alexander-alderman-webb alexander-alderman-webb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good as well

@srothh
srothh merged commit 9d4ffb8 into srothh/anthropic-output-tokens-reasoning-attributes Nov 19, 2026
343 of 345 checks passed
@srothh
srothh deleted the srothh/anthropic-output-tokens-reasoning-streaming branch November 19, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants