Instrumenting AI Agents for Real: Tokens, Cost, Tool Calls and Decisions That Get Judged Later
What the Claude, OpenAI and Gemini SDKs actually report, what OpenTelemetry standardises and what it doesn't, and the exact code and queries we use for every AI agent metric: Claude calls and retries, cache-aware tokens, cost from a price table, runs and stop reasons, tool hand-offs and loops, and decision quality from random audits that arrive late.
