Direct answer
What should an OpenTelemetry trace for an AI agent capture?
#An agent trace should connect the task, active agent and workflow versions, model calls, retrieval, messages, state transitions, tool requests, authorization decisions, human interventions, costs, errors, side effects, and final business outcome under one durable correlation context.
- Avoid recording secrets or unnecessary sensitive content in telemetry.
- Keep semantic attributes versioned as conventions evolve.
- Trace evidence must support operations, evaluation, incident response, and cost attribution.
Source basis: reviewed synthesis of the strategy corpus. Report-derived claims remain subject to the verification boundary in the source library.