Skip to main content
PATCH
Update a span with its output, timing, and metrics after the operation completes.
string
required
Span identifier
object
required
Span output data
string
required
ISO 8601 timestamp when span completed
integer
Input tokens used (LLM spans)
integer
Output tokens generated (LLM spans)
number
Estimated cost in USD
string
required
Span status: completed or error
string
Error message if status is error
string
required
Updated span identifier
integer
required
Calculated duration in milliseconds