Filter Traces
Construct a Query in the Filter Bar
Click on the filter bar to type, select, or use Copilot to search for a filter
Construct a filter using the query syntax
Press
Enter
to apply the filter!
✨ You can use AI Search to automatically generate query filters! Simply use the keyword "filter" followed by your desired criteria. Example: "Filter for LLM spans"
Syntax Guide
General Syntax
Format:
"dimension name" = 'value'
Enclose the dimension in double quotes (
"
) and the value in single quotes ('
).
Examples:
Equals:
"dimension_name" = 'value'
Not Equals:
"dimension_name" != 'value'
Contains:
"dimension_name" contains 'substring'
Like:
"dimension_name" regexp_like 'pattern'
Null:
"attributes.input.value" = null
or"attributes.input.value" is null
IN:
"dimension_name" IN ('value_1', 'value_2')
AND/OR Support: Combine multiple conditions using
AND
orOR
.
Operators:
=
: Equals!=
: Not equals<
: Less than>
: Greater thanIN
: Includes
Functions:
Regexp_Like: Use
regexp_like
to check if a string matches a regular expression patternExamples:
Match Beginning of String:
"dimension_name" regexp_like '^start'
Match End of String:
"dimension_name" regexp_like 'end$'
Case Insensitive Match:
"dimension_name" regexp_like '(?i)pattern'
Basic Pattern Match:
"dimension_name" regexp_like 'key_name"\s*:\s*[[^]]"value"]^]]]'
(checks if the "dimension_name" column contains a key and specific value.)
Contains: Use
contains
to check if a string column contains a substring
AI Search
Access the query filter bar at the top of the Tracing page.
From the filter drop-down, enter your search criteria in Mini Chat.
i.e "find angry responses", "frustrated user inquiries"
Copilot conducts a semantic search on your data, returning the number of rows retrieved along with a summary.
After generating results, you can input different search criteria to refine the outcomes.
If you are satisfied with the results, click "Apply as Filter" to implement the filter on your traces.
For more information on AI search, visit our skills section.
Last updated