-
[OPIK-6820] [BE][FE] feat: add total tokens KPI to AI Spend home summary
发布于
2026-06-12 11:40:46 +00:00 Replace the placeholder "Budget remaining" card on the AI Spend home
dashboard with a "Total tokens" KPI (input tokens from traces + output
tokens from spans), including the period-over-period trend.- Summary endpoint now sums input tokens (traces metadata.cc.*) and output
tokens (spans cc.llm_call.attributed_output_tokens) into a total_tokens
metric; no new queries — folded into the existing cost/counts queries. - FE swaps the budget placeholder for the tokens card.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
下载附件
- Summary endpoint now sums input tokens (traces metadata.cc.*) and output