Skip to main content

TraceSpan

One call inside a decision, and what it cost

Attributes (7)
AttributeTypeRequiredDescription
atstringYesWhen the call ended, which is when its cost was known
opstringYesDotted and stable: job.run, plugin.invoke, llm.generate
targetstringNoWhich one: a plugin and its method, or a model
msnumberYesHow long it held, measured around the call rather than reported by it
outcomeTraceOutcomeYes
errorstringNoThe failure, summarized to a shape rather than a stack
detailRecord<string, unknown>NoWhatever this op is worth reading back: tokens, a finish reason, the bound it was given