Get Span

View as Markdown

Path parameters

workspacestringRequired
span_idstringRequired

Response

Successful Response
span_idstring
session_idstring
workspacestring
kindenum
sourcestring
started_atdatetime
statusenum
Allowed values:
ingested_atdatetime
projectstringOptional
evaluation_contextobjectOptional
parent_span_idstringOptional
namestringOptional
trace_idstringOptional
ended_atdatetimeOptional
error_typestringOptional
error_messagestringOptional
Normalized error message. In summary and preview modes this is truncated to 1000 characters.
providerstringOptional
modelstringOptional
prompt_idstringOptional
agent_idstringOptional
agent_namestringOptional
tool_namestringOptional
input_tokensintegerOptional>=0
output_tokensintegerOptional>=0
cached_tokensintegerOptional>=0
total_tokensintegerOptional>=0
usage_detailsmap from strings to integersOptional
cost_total_usddoubleOptional
cost_input_usddoubleOptional
cost_output_usddoubleOptional
cost_detailsmap from strings to doublesOptional
inputstringOptional
Span input text. Omitted in summary mode and truncated to 300 characters in preview mode.
outputstringOptional
Span output text. Omitted in summary mode and truncated to 300 characters in preview mode.
raw_attributesstringOptional

Errors

422
Unprocessable Entity Error