Task span
Goal, user, tenant, policy version, input references, final status, and outcome score.
Production Operations
Model telemetry is only one layer of an agent system. Production observability must connect the user goal to plans, state transitions, retrieval, tools, approvals, outcomes, cost, and recovery behavior.
Use a task-level trace with child spans for model calls, retrieval, tools, memory, and human approvals. Combine operational metrics with outcome evaluations, and retain enough evidence to reproduce why an action occurred.
Use these dimensions to make the architecture decision explicit and testable.
Goal, user, tenant, policy version, input references, final status, and outcome score.
Plan version, selected action, alternatives, confidence, and reason codes.
Validated parameters, permission decision, response, retries, latency, and side effects.
Items written or retrieved, filters, ranking, provenance, and retention class.
Use these dimensions to make the architecture decision explicit and testable.
Completion, failure, retry, timeout, rollback, and escalation rates.
Task-specific correctness, groundedness, policy compliance, and human acceptance.
Cost per completed task, useful latency, tool-call count, and wasted branches.
Blocked actions, injection detections, privilege violations, and approval bypass attempts.
Use these dimensions to make the architecture decision explicit and testable.
Alert on outcome degradation and policy violations, not token volume alone.
Replay a task with the same inputs, model version, tools, and policy.
Add failures to evaluation sets and compare changes before release.
Control access to traces because they may contain sensitive prompts, data, and tool output.
Use this as a design-review gate before release.
Place this pattern inside a broader agent architecture and operating model.
Browse memory, planning, frameworks, reliability, safety, and observability.
Open the tutorial library →Start with agent features, design patterns, benefits, challenges, and industry applications.
Open the guide →