Skip to content

feat(agent-conversation): Show aggregate metrics and costs - #1662

Merged
vgrozdanic merged 1 commit into
mainfrom
feat/conversation-aggregate-metrics
Oct 9, 2026
Merged

vgrozdanic merged 1 commit into
mainfrom
feat/conversation-aggregate-metrics

Conversation

@vgrozdanic

@vgrozdanic vgrozdanic commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Conversation detail output now surfaces conversation-wide cost, call, error, token, and trace summaries already returned by Sentry. List output also displays cost, so operators can compare conversations without extra API calls.

Older self-hosted servers remain compatible: stats are optional, and token totals fall back to transcript calculation. Trace IDs cover fetched spans; truncated signals when pagination may make that set incomplete.

Closes TET-2959
Closes TET-2951

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Oct 9, 2026 12:35pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 9, 2026 12:35pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – sentry-local October 9, 2026 12:31 Inactive
@linear-code

linear-code Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

TET-2951

TET-2959

@vgrozdanic
vgrozdanic marked this pull request as ready for review October 9, 2026 12:32
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 9, 2026
@vgrozdanic
vgrozdanic force-pushed the feat/conversation-aggregate-metrics branch from bb6046d to b290ff9 Compare October 9, 2026 12:34
@vercel
vercel Bot temporarily deployed to Preview – sentry-local October 9, 2026 12:34 Inactive
Preserve detail stats through pagination and expose costs, call totals, errors, token totals, and trace IDs in conversation output.

Refs TET-2959

Refs TET-2951

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2971a74. Configure here.

Comment thread packages/cli/src/lib/formatters/conversation.ts
@vgrozdanic
vgrozdanic merged commit 428dbac into main Oct 9, 2026
37 checks passed
@vgrozdanic
vgrozdanic deleted the feat/conversation-aggregate-metrics branch October 9, 2026 12:47
vgrozdanic added a commit to getsentry/toolkit that referenced this pull request Oct 9, 2026
Conversation details now preserve server aggregate stats across
pagination and expose cost, call totals, errors, token totals, and
deduplicated trace IDs in JSON and human output. Conversation list
output also shows cost.

Port of [getsentry/cli#1662](getsentry/cli#1662)
after CLI moved into Toolkit.

Refs TET-2959
Refs TET-2951

Co-authored-by: GPT-5.6 Sol <agent@openai.com>

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — 2971a749 Deployed Oct 9, 2026 by vercel[bot]
Preview – sentry-local — 2971a749 Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant