Ingest spans from traces
Ingest an array of spans as a trace. Each span uses the same fields as Create span, plus span_unique_id to identify each span within the trace.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Request
This endpoint expects a list of objects.
trace_unique_id
Trace ID linking all spans in this trace.
span_unique_id
Unique span ID within the trace.
id
Unique ID for this span.
span_parent_id
Parent span ID. null for root spans.
span_name
Name of this span.
span_workflow_name
Name of the parent workflow.
log_type
Type of span.
input
The input to the model. Format depends on log_type.
output
The output from the model. Format depends on log_type.
model
Model used.
usage
Token usage.
cost
Cost in USD.
latency
Latency in seconds.
status
Request status.
Allowed values:
timestamp
When the request completed (ISO 8601).
start_time
When the request started (ISO 8601).
customer_identifier
End user identifier.
metadata
Arbitrary key-value pairs.
Response
Successful response for Ingest spans from traces
Errors
401
Unauthorized Error