Traces

Search, inspect, tag, and re-evaluate traces in a project.

Search, inspect, tag, and re-evaluate traces in a project.

Commands

CommandDescription
traces add-tagsAdd tags to a trace.
traces behaviorsList behaviors observed on a trace.
traces evaluateRe-evaluate traces.
traces getGet a trace by ID.
traces searchSearch traces.
traces spanGet span details.
traces spansList a trace’s spans.
traces tagsList a trace’s tags.

traces add-tags

Add tags to a trace.

Attach one or more string tags to an existing trace. Tags are additive — existing tags are preserved.

judgment traces add-tags [OPTIONS] <PROJECT_ID> <TRACE_ID>

Arguments

NameRequired
PROJECT_IDyes
TRACE_IDyes

Options

FlagTypeRequiredDescription
--tagstextyesString tags to attach to the trace. Tags are additive — existing tags on the trace are preserved.

traces behaviors

List behaviors observed on a trace.

judgment traces behaviors <PROJECT_ID> <TRACE_ID>

Arguments

NameRequired
PROJECT_IDyes
TRACE_IDyes

traces evaluate

Re-evaluate traces.

Queue traces for re-evaluation by the project’s judges. Pass trace_ids to re-evaluate specific traces, or evaluate_all: true to re-evaluate every trace in the project.

judgment traces evaluate [OPTIONS] <PROJECT_ID>

Arguments

NameRequired
PROJECT_IDyes

Options

FlagTypeRequiredDescription
--evaluate-allbooleannoWhen true, re-evaluate every trace in the project. Mutually exclusive with trace_ids.
--trace-idstextnoTrace UUIDs to re-evaluate. Mutually exclusive with evaluate_all.
--specific-judge-namestextnoRestrict evaluation to judges with these names. Omit to run every applicable judge.

traces get

Get a trace by ID.

judgment traces get <PROJECT_ID> <TRACE_ID>

Arguments

NameRequired
PROJECT_IDyes
TRACE_IDyes

Search traces.

Filter, sort, time-bound, and paginate traces in a project. See each body field for the exact JSON shape it expects.

judgment traces search [OPTIONS] <PROJECT_ID>

Arguments

NameRequired
PROJECT_IDyes

Options

FlagTypeRequiredDescription
--filterstextnoFilter expressions, ANDed together. Each item is {"field":&lt;field&gt;,"op":&lt;op&gt;,"value":&lt;value&gt;}. Allowed ops depend on the field's type. Op groups: - STRING_OPS = = | != | contains | does_not_contain | exists | is_absent - NUMERIC_OPS = = | != | &lt; | &lt;= | &gt; | &gt;= - ARRAY_ANY = any (matches when the row's array overlaps the supplied values) String fields (op in STRING_OPS, value is a string): span_name, customer_id, customer_user_id, session_id, error, dataset_id. Numeric fields (op in NUMERIC_OPS, value is a number): duration (nanoseconds), llm_cost (USD). Array fields (op = any, value is an array): tags (strings), rules_invoked (rule names from this project, strings), behaviors (behavior UUIDs). Special: - full_text_search: op = contains, value is a string searched across span attribute text. - span_attributes_roots: matches a single span attribute key/value: {"field":"span_attributes_roots","key":"&lt;attribute-name&gt;","op":&lt;STRING_OPS&gt;,"value":"&lt;string&gt;"}
--sort-bytextno{"field":&lt;sort_field&gt;,"direction":"asc"|"desc"} where sort_field is one of: created_at, span_name, duration, llm_cost. Default when omitted: {"field":"created_at","direction":"desc"}.
--time-rangetextno{"start_time":&lt;iso8601-string&gt;|null,"end_time":&lt;iso8601-string&gt;|null}. Either bound may be null to leave that side open. Invalid timestamps return 400.
--paginationtextyes{"limit":&lt;int 1-200&gt;,"cursorSortValue":&lt;string&gt;|null,"cursorItemId":&lt;string&gt;|null}. First page: pass null for both cursor fields. Each response returns nextCursor:{sort_value,trace_id} (or null when hasMore=false); copy those into cursorSortValue and cursorItemId for the next page.

traces span

Get span details.

Fetch full details (inputs/outputs/attributes) for up to 20 specific spans across one or more traces.

judgment traces span [OPTIONS] <PROJECT_ID>

Arguments

NameRequired
PROJECT_IDyes

Options

FlagTypeRequiredDescription
--spanstextyesUp to 20 trace/span ID pairs to fetch span details for in a single request.

traces spans

List a trace’s spans.

judgment traces spans <PROJECT_ID> <TRACE_ID>

Arguments

NameRequired
PROJECT_IDyes
TRACE_IDyes

traces tags

List a trace’s tags.

judgment traces tags <PROJECT_ID> <TRACE_ID>

Arguments

NameRequired
PROJECT_IDyes
TRACE_IDyes