Traces and spans
Traces and spans in Stratix — the unit of "what did my AI actually do."
Why they matter
Shape
{
"id": "trace-123",
"name": "answer-question",
"inputs": {"prompt": "..."},
"outputs": {"response": "..."},
"started_at": "...",
"duration_ms": 1234,
"spans": [
{
"name": "retrieval",
"kind": "tool",
"inputs": {...},
"outputs": {...},
"duration_ms": 200
},
{
"name": "llm-call",
"kind": "llm",
"model": "claude-opus-4-7",
"inputs": {...},
"outputs": {...},
"duration_ms": 850
}
]
}Span kinds
Trace evaluation
Best practices
Span-level evaluation
Formal schema
Where to next
Last updated
Was this helpful?