OptionalinputInput data
OptionalmetadataTrace metadata
Trace name
OptionaloutputOutput extraction config
OptionaloutputOutput transform function
OptionalparentParent span ID (for nested trace() calls)
Map of toolCallId → llmSpanId for linking tool spans to their parent LLM
Root span ID (the agent/workflow span)
OptionalsessionSession ID for grouping traces
Start time in ms
OptionaltagsTrace tags
Unique trace ID (shared by all spans in this trace)
OptionaluserUser ID for filtering by user
Current span ID (for nesting - LLM calls become children of this)