Alpha: The request and response contract may change; Retrieve all traces belonging to a specific thread within a project.
Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Thread ID
cursor is the opaque string from a previous response's next_cursor. Omit on the first request; pass the returned cursor to fetch the next page.
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.
page_size is the maximum number of traces to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set.
1 <= x <= 100project_id is the tracing project UUID (required).
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, PROMPT_COST, COMPLETION_COST, TOTAL_COST, PROMPT_TOKEN_DETAILS, COMPLETION_TOKEN_DETAILS, PROMPT_COST_DETAILS, COMPLETION_COST_DETAILS, NAME, ERROR_PREVIEW items and pagination
items is the page of root traces in this thread. Which properties are populated on each trace depends on the selects query parameter.
next_cursor is the opaque cursor to pass as cursor on the next request. Omitted on the final page.
"eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ=="