Spans
Create span
Create span
post/v1/private/spans
Request body
idstring uuid
project_namestring
If null, the default project is used
trace_idstring uuid
parent_span_idstring uuid
namestring
type'general' | 'tool' | 'llm' | 'guardrail'
start_timestring date-time required
end_timestring date-time
inputJsonListStringWrite
outputJsonListStringWrite
metadataJsonListStringWrite
modelstring
providerstring
tagsstring[]
usageobject
last_updated_atstring date-time
total_estimated_costnumber
total_estimated_cost_versionstring
ttftnumber double
Time to first token in milliseconds
source'sdk' | 'experiment' | 'playground' | 'optimization' | 'evaluator'
environmentstring
Response
Created