trace_id | str | Required | Unique trace identifier |
name | str | Required | Trace name (typically the root span name, e.g., Agent.run) |
status | str | Required | Overall status: OK, ERROR, or UNSET |
duration_ms | int | Required | Total execution time in milliseconds |
start_time | datetime | Required | When the trace started |
end_time | datetime | Required | When the trace completed |
total_spans | int | Required | Total number of spans in this trace |
error_count | int | Required | Number of spans that errored |
run_id | Optional[str] | Required | Associated agent/team/workflow run ID (None when not set) |
session_id | Optional[str] | Required | Associated session ID (None when not set) |
user_id | Optional[str] | Required | Associated user ID (None when not set) |
agent_id | Optional[str] | Required | Associated agent ID (None when not set) |
team_id | Optional[str] | Required | Associated team ID (None when not set) |
workflow_id | Optional[str] | Required | Associated workflow ID (None when not set) |
created_at | datetime | Required | When the trace record was created |