The Meter Was Always Running

AI-generated summary of reporting by Oreilly AI ML Blog. Read the original for the full story.

Why it matters

Teams deploying tool-using agents can't attribute or govern their costs and risks because instrumentation still treats a request, not the agent loop, as the unit of work.

Read this as

This is an opinion article by Bennie Haelen, published July 23, 2026, arguing that AI agents (software that works toward a goal by making many model and tool calls in a loop) need a new kind of monitoring. Today's monitoring treats each request as one unit, so companies see bills but can't explain why one agent run cost 40 times the median. The author says companies should record what happens turn by turn, at infrastructure the agent cannot bypass. This affects any organisation deploying agents and facing their invoices.

When an agent invoice arrives, provider billing shows tokens but not which design choice caused the spend; application logs show success but not the path. Haelen argues one observability layer, built below the agent at gateways and policy engines, answers three governance problems at once: cost, delegated authority, and runaway actions. Self-reported agent logs fail audits. Firms instrumenting only the request boundary will keep disputing bills instead of querying them.

The proposal: treat the loop turn as the unit of observation, with OpenTelemetry spans capturing run_id, turn_id, token counts per turn, tool_name, result_bytes, policy_decision, principal_id, delegated_scope, stop_reason, and loop_bound_hit, stored in a fleet-queryable warehouse (the author's pilot uses Cloud Trace and a usage-log table). Design work is cardinality control, retention, and metadata-by-default payload capture. Existing trace viewers show one run; the gap is independent, queryable evidence.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

O'Reilly Bennie Haelen OpenTelemetry Cloud Trace

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading