Prefer zero setup? Use
plog run or import provenlog.auto instead. See Auto-Instrumentation.Setup
What gets captured
| Event | Action Type | Details |
|---|---|---|
| Function calls | TOOL_CALL / TOOL_RESULT | Function name, arguments, output |
| LLM generations | LLM_CALL / LLM_RESPONSE | Model, token counts |
| Handoffs | CUSTOM | Source agent, target agent |
| Guardrail evaluations | CUSTOM | Guardrail name, pass/fail |
| Agent spans | CUSTOM | Agent lifecycle events |
How it works
The Trail registers as a trace processor via the OpenAI Agents SDK’sadd_trace_processor hook. It receives structured trace events for all agent activity.