All features
03NESTED TRACES
Spans, tools & chains
Real LLM apps aren't one call — they're retrievers, tool calls, and chains of model steps. Currai nests spans inside a trace so you get the full tree of a request and can pinpoint exactly which step was slow or wrong.
- Arbitrary nesting: spans inside spans inside the root trace.
- Mix generations, retriever spans, and plain function spans freely.
- Each node carries its own input, output, timing, and metadata.
- Works with agent loops, RAG pipelines, and multi-model chains.
currai