Skip to main content

Construct Queries

The filter bar supports structured queries with autocomplete for field names, operators, and enum values.
Filter bar showing autocomplete suggestions
Syntax:
field operator value

Fields

Fields are fetched dynamically and may vary. The defaults:
FieldType
trace_idtext
run_idtext
session_idtext
nametext
statusenum: ok, error
user_idtext
agent_idtext
team_idtext
workflow_idtext
created_atdatetime
start_timedatetime
end_timedatetime
duration_msnumber

Operators

OperatorSymbolWorks With
Equals=all types
Not equals!=all types
Greater than>number, datetime
Greater than or equal>=number, datetime
Less than<number, datetime
Less than or equal<=number, datetime
Containscontainstext
Not contains!containstext
Starts withstartswithtext
In (multiple values)inenum

Combining Conditions

  • AND — all conditions must match
  • OR — any condition must match
  • Operators and keywords are case-insensitive (and, AND, And all work)

Examples

Single condition:
status = ok
session_id = 625185b5-6a7a-43bd-afae-339a989ea1cc
Text matching:
agent_id contains my-agent
agent_id startswith chatbot
Multiple conditions:
status = ok AND agent_id = my-agent
status in "ERROR" AND agent_id != "sdghs"
Mixed operators:
status = ok AND agent_id = my-agent OR team_id = my-team

Time Filters

The date picker sits next to the filter bar.
Date picker with preset and custom ranges
Preset
Last 30 minutes
Last 1 hour
Last 6 hours
Last 1 day
Last 7 days
All time
Custom (pick start and end dates)
The filter bar and date picker are mutually exclusive. Applying a text filter clears the date range. Picking a date range clears the text filter.

Views

Toggle between two views using the Runs / Sessions tab at the top right of the filter bar.
Runs and Sessions view toggle
  • Runs — individual trace executions
  • Sessions — traces grouped by session