Skip to content

feat(ai-monitoring): Add conversation token breakdowns - #127009

Merged
vgrozdanic merged 1 commit into
masterfrom
feat/conversation-token-breakdowns
Oct 9, 2026
Merged

vgrozdanic merged 1 commit into
masterfrom
feat/conversation-token-breakdowns

Conversation

@vgrozdanic

Copy link
Copy Markdown
Member

Conversation details now include conversation-wide cache-read, cache-write, and reasoning token totals, matching values already exposed for each model. API, CLI, and MCP consumers can read complete token usage directly without reducing usageByModel themselves.

This keeps existing token fields compatible and documents that input totals include cache reads and writes.

Refs TET-3079

Return cache-read, cache-write, and reasoning token totals for the whole conversation alongside existing per-model values.

Refs TET-3079
@linear-code

linear-code Bot commented Oct 9, 2026

Copy link
Copy Markdown

TET-3079

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 9, 2026
@vgrozdanic
vgrozdanic marked this pull request as ready for review October 9, 2026 11:14
@vgrozdanic
vgrozdanic requested review from a team as code owners October 9, 2026 11:14
@vgrozdanic
vgrozdanic enabled auto-merge (squash) October 9, 2026 11:19
@vgrozdanic
vgrozdanic merged commit 004b418 into master Oct 9, 2026
70 of 71 checks passed
@vgrozdanic
vgrozdanic deleted the feat/conversation-token-breakdowns branch October 9, 2026 11:21
vgrozdanic added a commit that referenced this pull request Oct 9, 2026
Conversation details page now displays input, output, cache, reasoning,
and total token counters exactly as the API returns them. It no longer
guesses whether provider counters include cache or reasoning values,
keeping web output aligned with CLI and MCP consumers.

Depends on #127009 landing first so conversation-wide cache and
reasoning totals are part of the response contract.

Closes
[TET-3079](https://linear.app/getsentry/issue/TET-3079/return-canonical-conversation-token-breakdowns)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants