Your monthly AI bill doubled and you have no idea which feature caused the jump.
- ASwitch to a cheaper model everywhere.
- BSet a lower global token limit.
- CLog token usage and cost per run, tagged by feature and user.
- DWait and see whether next month comes down.
Answer: C
Log token usage and cost per run, tagged by feature and user.
Why
You can’t optimize what you don’t measure. Per-run token and cost logs tagged by feature pinpoint the source; blanket cuts and waiting fix nothing you can name.
- ObservabilityYour agent’s logs are one big stream of plain-text lines.
- ObservabilityFull tracing of every run now costs more than the model calls it traces.
- ObservabilityYou log token spend per run in detail, yet nobody in the room can say whether the agent is worth keeping.
- ObservabilityA user reports the agent gave a wrong answer yesterday.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path