By Kaushik Varanasi16 min read

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.

Read more →

All posts

By Kaushik Varanasi6 min read

Observability for AI Agents: Measuring Whether Their Decisions Are Any Good

An AI agent can fail without a single error: it gets less sure of itself and hands everything to people, or it gets overconfident and quietly makes wrong decisions. We instrumented agents for our internal benchmarking with OpenTelemetry and four extra numbers — share decided alone, wrong when alone, work saved per 100 decisions, and cost per run — and they caught every failure that request monitoring missed.

Read more →

By Kaushik Varanasi9 min read

Frontend Observability Without RUM: Session Cohorts with Stock OpenTelemetry

You can find the slice of users who are broken — one tenant, one plan, one build — using only published OpenTelemetry packages: @opentelemetry/web-common for session ids, a ~15-line span processor for your own attributes, and W3C baggage to carry the session into your backend spans. No RUM vendor, no proprietary agent, no schema to register.

Read more →

By Kaushik Varanasi8 min read

How a Bank Finds Its Own Root Cause in 20 Seconds

We run a real six-service bank that moves money continuously. When we stopped its ledger, the first alert fired in 20 seconds and the diagnosis named the dead service by name — not because a model guessed, but because the evidence was gathered first and the model was only asked to read it.

Read more →

By Kaushik Varanasi7 min read

Zero-Code OpenTelemetry: Instrumenting a Real Distributed System

You can add full distributed tracing, metrics, and logs to a Python microservices app without touching application code — install the OpenTelemetry distro, bootstrap the instrumentors, and run each service under the opentelemetry-instrument wrapper. Here is exactly how we did it for Fathom, a nine-service bank, plus the one gotcha that keeps logs from showing up.

Read more →

By Kaushik Varanasi3 min read

AI Incident Triage, Explained: How AI Agents Cut MTTR

AI incident triage is the use of AI agents to do the first phase of incident response automatically: cluster alerts, correlate telemetry with deploys, rank probable root causes, and draft the incident summary before a human is paged. Here is how it works and how to evaluate it.

Read more →

RSS feed ↗llms.txt for AI readers ↗