Skip to navigation

Get trace by id

View as Markdown
Get trace by id

Path parameters

idstringRequiredformat: "uuid"

Query parameters

strip_attachmentsbooleanOptionalDefaults to false

If true, returns attachment references like [file.png]; if false, downloads and reinjects attachment content from S3 (default: false for backward compatibility)

Response

Trace resource
start_timedatetime
idstringOptionalformat: "uuid"
project_idstringOptionalRead-onlyformat: "uuid"
namestringOptional
end_timedatetimeOptional
inputmap from strings to any or list of objects or stringOptional
outputmap from strings to any or list of objects or stringOptional
metadatamap from strings to any or list of objects or stringOptional
tagslist of stringsOptional
error_infoobjectOptional
usagemap from strings to longsOptionalRead-only
created_atdatetimeOptionalRead-only
last_updated_atdatetimeOptional
created_bystringOptionalRead-only
last_updated_bystringOptionalRead-only
feedback_scoreslist of objectsOptionalRead-only
span_feedback_scoreslist of objectsOptionalRead-only
Aggregated feedback scores from all spans in this trace, averaged by score name
commentslist of objectsOptionalRead-only
guardrails_validationslist of objectsOptionalRead-only
total_estimated_costdoubleOptionalRead-only
span_countintegerOptionalRead-only
durationdoubleOptionalRead-only

Duration in milliseconds as a decimal number to support sub-millisecond precision

ttftdoubleOptional
Time to first token in milliseconds
thread_idstringOptional
visibility_modeenumOptionalRead-only
Allowed values:
llm_span_countintegerOptionalRead-only
has_tool_spansbooleanOptionalRead-only
providerslist of stringsOptionalRead-only
List of unique provider names from all spans in this trace, sorted alphabetically
experimentobjectOptionalRead-only
Experiment reference with ID, name, dataset ID, and dataset item ID
annotation_queueslist of objectsOptionalRead-only
Annotation queues this trace is currently an item of
sourceenumOptional
Allowed values:
environmentstringOptional0-150 characters