Tracing
Update Span
Complete a span with output and metrics
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 errorstring
Error message if status is
errorstring
required
Updated span identifier
integer
required
Calculated duration in milliseconds

