Trace the task, not only the HTTP request
Production observability must connect user intent to model calls, tool calls, MCP servers, downstream APIs, policy decisions, retries, and the final business outcome.
Combine traces, metrics, logs, and evaluations
Traces
End-to-end execution tree: agent invocation, model calls, tool calls, retries, handoffs, approvals, downstream dependencies.
Metrics
Task completion, p50/p95/p99 latency, tool error rate, token usage, model calls, retries, cost per successful task.
Logs / audit
Security-relevant structured events: actor, tool, scope, policy decision, resource, result, version, correlation ID.
Evaluations
Quality signals: groundedness, task success, tool accuracy, policy adherence, human acceptance, red-team failures.
GenAI semantic conventions are becoming the shared vocabulary
OpenTelemetry conventions now cover GenAI model and agent operations, including token usage and tool execution. Use them as a portable base, then add domain-specific business metrics.
2026 update sources
Alert on user impact and unsafe behavior, not just infrastructure
| Area | Useful production signals | Alert examples |
|---|---|---|
| Reliability | Task completion, tool errors, retries, task stalls, resume failures | Completion drops below SLO; task stuck in input_required |
| Latency | p95 end-to-end, model latency, tool latency, queue time | p95 task duration doubles |
| Cost | Tokens, model calls, tool costs, cost per successful task | Cost/success exceeds budget |
| Security | Denied tools, scope failures, unusual destinations, approval bypass | New outbound domain or spike in denied actions |
| Quality | Task success, groundedness, evaluator score, human overrides | Regression after model/tool/prompt change |
KNOBS turns observability into optimization
Monitoring tells you what happened. KNOBS adds evaluation and experimentation so you can compare models, prompts, tool definitions, retrieval strategies, policies, and workflows against real outcomes.
