claude-code - 💡(How to fix) Fix [FEATURE] Add extra usage metric to telemetry [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46790Fetched 2026-04-12 13:32:57
View on GitHub
Comments
3
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
commented ×3labeled ×2
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When managing my team, it would be great to have more granular views of when an how they need extra usage—e.g. which models, projects, or workflows the extra usage is associated with

Proposed Solution

Just like the usage metric, claude code should also report an extra_usage metric that tracks how much extra usage is billed for a given request (above the user's existing subscription plan).

Alternative Solutions

You can see extra usage in the console, but there's no way to graph it or break it down by any sort of detail

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

As an engineering manager with a team of N developers using Claude Code, I need to understand our extra usage patterns to optimize costs and justify budget. Today, I can see a single "extra usage" dollar
amount in the Anthropic console, but I can't answer questions like:

  • Which projects drive the most extra usage? Our monorepo team might be generating 80% of extra usage due to large context windows, while the microservices team stays within plan limits. Without per-project breakdown, I can't target optimization efforts.

  • Which models are responsible? If most extra usage comes from Opus requests, I could set team guidelines to default to Sonnet for exploratory work and reserve Opus for complex tasks — but I need data to make that case.

  • Are there workflow patterns to address? One developer might be hitting extra usage repeatedly on CI debugging loops that could be solved with better test infrastructure. Another might spike during on-call incidents, which is expected and acceptable.

  • How do I forecast next month's bill? With a granular extra_usage metric exposed alongside the existing usage metric, I could build a Datadog/Grafana dashboard that shows extra usage trends over time, set alerts when a team or project exceeds a threshold, and produce weekly reports for finance.

Concrete scenario: I export telemetry to our observability stack and create a dashboard with extra_usage broken down by user, project, and model. I notice that our payments team's extra usage tripled last sprint. I dig in and find they were using Opus for a large refactor across 50+ files. That's a legitimate spike — no action needed. But I also spot a bot integration account generating unexpected extra usage from repeated failed tool calls, which I can now fix. Without the extra_usage metric, both of these would be invisible — just a bigger number on the monthly invoice.

Additional Context

No response

extent analysis

TL;DR

Implementing an extra_usage metric that tracks and breaks down extra usage by projects, models, and workflows could help engineering managers optimize costs and justify budget.

Guidance

  • Consider adding a new metric, extra_usage, to the existing usage tracking system to provide more granular views of extra usage.
  • Break down the extra_usage metric by relevant dimensions such as user, project, and model to enable targeted optimization efforts.
  • Integrate the extra_usage metric with existing observability tools, such as Datadog or Grafana, to create dashboards and set alerts for threshold exceedance.
  • Use the extra_usage metric to identify workflow patterns and areas for improvement, such as optimizing test infrastructure or defaulting to more cost-effective models for exploratory work.

Example

No specific code example can be provided without more context about the existing codebase and technology stack.

Notes

The implementation of the extra_usage metric may require significant changes to the existing usage tracking system and may involve coordination with multiple teams, including engineering, finance, and product.

Recommendation

Apply a workaround by manually tracking and breaking down extra usage using existing console data and external tools, such as spreadsheets or data visualization software, until a more integrated solution can be implemented. This will provide some insight into extra usage patterns, although it may not be as comprehensive or automated as a fully integrated extra_usage metric.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Add extra usage metric to telemetry [3 comments, 2 participants]