Query thread traces
Retrieve all traces belonging to a specific thread within a project.
Self-hosted deployments require LangSmith v0.16 or later.
Query Parameters
filter narrows which traces are returned for this thread, using a LangSmith filter expression evaluated against each root trace run.
For example: eq(status, "success") or has(tags, "production").
See https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.
selects lists which properties to include on each returned trace (repeatable query parameter). Accepts any value of the ThreadTraceSelectField enum. Properties not listed are omitted from each trace object; trace_id is always returned.
THREAD_ID, TRACE_ID, OP, PROMPT_TOKENS, COMPLETION_TOKENS, TOTAL_TOKENS, START_TIME, END_TIME, LATENCY, FIRST_TOKEN_TIME, INPUTS_PREVIEW, OUTPUTS_PREVIEW, INPUTS, OUTPUTS, ERROR, PROMPT_COST, COMPLETION_COST, TOTAL_COST, PROMPT_TOKEN_DETAILS, COMPLETION_TOKEN_DETAILS, PROMPT_COST_DETAILS, COMPLETION_COST_DETAILS, NAME, ERROR_PREVIEW, TURN_NUMBER Response
items and pagination

