Agno · Schema
TraceDetail
Detailed trace information with hierarchical span tree
AI AgentsMulti-Agent SystemsPython FrameworkLLMMachine LearningAgentic AIOpen SourceAgent Runtime
Properties
| Name | Type | Description |
|---|---|---|
| trace_id | string | Unique trace identifier |
| name | string | Trace name (usually root span name) |
| status | string | Overall status (OK, ERROR) |
| duration | string | Human-readable total duration |
| start_time | string | Trace start time (Pydantic auto-serializes to ISO 8601) |
| end_time | string | Trace end time (Pydantic auto-serializes to ISO 8601) |
| total_spans | integer | Total number of spans in this trace |
| error_count | integer | Number of spans with errors |
| input | object | Input to the agent/workflow |
| output | object | Output from the agent/workflow |
| error | object | Error message if status is ERROR |
| run_id | object | Associated run ID |
| session_id | object | Associated session ID |
| user_id | object | Associated user ID |
| agent_id | object | Associated agent ID |
| team_id | object | Associated team ID |
| workflow_id | object | Associated workflow ID |
| created_at | string | Time when trace was created (Pydantic auto-serializes to ISO 8601) |
| tree | array | Hierarchical tree of spans (root nodes) |
JSON Schema
{
"properties": {
"trace_id": {
"type": "string",
"title": "Trace Id",
"description": "Unique trace identifier"
},
"name": {
"type": "string",
"title": "Name",
"description": "Trace name (usually root span name)"
},
"status": {
"type": "string",
"title": "Status",
"description": "Overall status (OK, ERROR)"
},
"duration": {
"type": "string",
"title": "Duration",
"description": "Human-readable total duration"
},
"start_time": {
"type": "string",
"format": "date-time",
"title": "Start Time",
"description": "Trace start time (Pydantic auto-serializes to ISO 8601)"
},
"end_time": {
"type": "string",
"format": "date-time",
"title": "End Time",
"description": "Trace end time (Pydantic auto-serializes to ISO 8601)"
},
"total_spans": {
"type": "integer",
"title": "Total Spans",
"description": "Total number of spans in this trace"
},
"error_count": {
"type": "integer",
"title": "Error Count",
"description": "Number of spans with errors"
},
"input": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Input",
"description": "Input to the agent/workflow"
},
"output": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Output",
"description": "Output from the agent/workflow"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error",
"description": "Error message if status is ERROR"
},
"run_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Run Id",
"description": "Associated run ID"
},
"session_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session Id",
"description": "Associated session ID"
},
"user_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "User Id",
"description": "Associated user ID"
},
"agent_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent Id",
"description": "Associated agent ID"
},
"team_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Team Id",
"description": "Associated team ID"
},
"workflow_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Workflow Id",
"description": "Associated workflow ID"
},
"created_at": {
"type": "string",
"format": "date-time",
"title": "Created At",
"description": "Time when trace was created (Pydantic auto-serializes to ISO 8601)"
},
"tree": {
"items": {
"$ref": "#/components/schemas/TraceNode"
},
"type": "array",
"title": "Tree",
"description": "Hierarchical tree of spans (root nodes)"
}
},
"type": "object",
"required": [
"trace_id",
"name",
"status",
"duration",
"start_time",
"end_time",
"total_spans",
"error_count",
"created_at",
"tree"
],
"title": "TraceDetail",
"description": "Detailed trace information with hierarchical span tree",
"$schema": "https://json-schema.org/draft/2020-12/schema"
}