Traceway
Platform

Search & Query

The Traceway query language for finding traces and spans.

Traceway includes a query DSL for filtering traces and spans. The same syntax works in the dashboard search bar and in API query parameters. Filters combine with AND logic — results must match every filter.

Query syntax

A query is a sequence of filters separated by spaces. Each filter uses key:value syntax, with optional comparison operators for numeric fields.

model:gpt-4o status:completed cost:>0.05

Operators

OperatorSyntaxExampleDescription
Equalskey:valuemodel:gpt-4oExact string match
Quoted equalskey:"value"name:"my agent"Exact match with spaces
Greater thankey:>valuecost:>0.10Numeric comparison
Less thankey:<valueduration:<500Numeric comparison
Greater or equalkey:>=valuetokens:>=1000Numeric comparison
Less or equalkey:<=valuecost:<=0.01Numeric comparison
Negation-key:value-model:gpt-4oExclude matching results

Bare text (without a key: prefix) performs full-text search across span names, inputs, and outputs:

summarize document

This finds spans where the name, input, or output contains both "summarize" and "document".

Filter parameters

String filters

KeyMatches onExample
modelModel namemodel:claude-3-5-sonnet
providerProvider nameprovider:anthropic
kindSpan kindkind:llm_call
statusSpan statusstatus:failed
nameSpan name (substring)name:generate
traceTrace ID (exact)trace:01234567-89ab-cdef-0123-456789abcdef
sessionSession ID (exact)session:sess_abc123

The kind field accepts: llm_call, custom, fs_read, fs_write, tool_call, retrieval, embedding.

The status field accepts: running, completed, failed.

Numeric filters

KeyUnitExample
costUSDcost:>0.01
tokensCount (input + output)tokens:>5000
input_tokensCountinput_tokens:>2000
output_tokensCountoutput_tokens:>1000
durationMillisecondsduration:>3000

Date filters

KeyFormatExample
sinceISO 8601 or relativesince:2024-06-15T00:00:00Z
untilISO 8601 or relativeuntil:24h

Relative time values: 5m (5 minutes), 1h (1 hour), 24h (24 hours), 7d (7 days), 30d (30 days).

Content filters

KeySearches inExample
inputSpan input datainput:"system prompt"
outputSpan output dataoutput:"I don't know"

Content filters use substring matching. Wrap multi-word values in double quotes.

Autocomplete

The dashboard search bar provides autocomplete suggestions as you type. Start typing a key name and the search bar shows available keys:

mo  →  model:
pr  →  provider:
st  →  status:
ki  →  kind:
co  →  cost:

After typing a key and colon, autocomplete shows known values from your data:

model:  →  gpt-4o, claude-3-5-sonnet, gpt-4o-mini, ...
status: →  completed, failed, running
kind:   →  llm_call, custom, tool_call, ...

Press Tab to accept a suggestion, or keep typing to narrow the list.

Example queries

Find all Claude calls that cost more than 10 cents:

model:claude-3-5-sonnet cost:>0.10

Find failed spans in the last hour:

status:failed since:1h

Find slow tool calls (over 10 seconds):

kind:tool_call duration:>10000

Find spans where the output mentions a specific error:

output:"rate limit exceeded" provider:openai

Exclude a specific model from results:

kind:llm_call -model:gpt-4o-mini

Find high-token conversations in a session:

session:sess_abc123 tokens:>5000

Saving searches

Click the bookmark icon next to the search bar to save the current query. Saved searches appear in the dropdown when you focus the search bar.

Each saved search stores:

  • The full query string
  • A display name (editable)
  • The page it was saved from (Traces or Spans)

Saved searches are shared across the project — any team member can see and use them. To delete a saved search, hover over it in the dropdown and click the remove icon.

On this page