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

Changes

Changed in 3 of the 57 revisions of this API.112

    • added the new evaluator enum value to the request property source

      request-property-enum-value-added

    • added the new optional request property environment

      new-optional-request-property

    • removed the enum value evaluator of the request property source

      request-property-enum-value-removed

    • removed the request property environment

      request-property-removed

    This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog