What to instrument
Every agent step is a span. Capture inputs, outputs, tool calls, retrievals, latency, tokens, cost, and human edits.
- Per-step spans with prompt + completion + tool args.
- Retrieval scores and chunk IDs for grounding audits.
- Cost per task, p50/p95 latency, success rate.
- Human override events as ground-truth labels.
Tooling and runbooks
Implement Agentic standardizes on Langfuse, LangSmith, Braintrust, or Arize Phoenix depending on compliance posture, paired with PagerDuty or Opsgenie for on-call. Runbooks cover prompt rollback, model fallback, tool circuit breaking, and evaluation regression triage.
