Skip to main content

Filters

Latitude uses a universal filter system across the platform. The same filters you use to narrow traces in a search also power saved searches and evaluation triggers. Learn it once, use it everywhere.

How Filters Work

A filter is a set of field conditions. Active conditions combine with AND logic. For example, “Status is error” and “Cost is greater than $1” returns only traces that match both conditions. Filters appear on the Traces page (alongside the search query) and in the configuration UI for evaluation triggers.
Filters panel showing model filtering on the Traces page

Available Filter Fields

Operators

Filters support 10 operators:

Custom Metadata Filters

Your application can send structured metadata with its telemetry. Filter on any metadata field using dot-notation:
  • metadata.env: top-level key
  • metadata.runtime.region: nested key
Metadata filters support exact matches, ranges, set membership, and substring searches on your custom fields.

Combining Filters

All active filters combine with AND logic. Common combinations:
  • Status = ERROR and Cost > $1: find expensive failures
  • Models = gpt-4o and Duration > 5s: find slow GPT-4o traces
  • Metadata environment = production and Error Count > 0: find production errors
  • Tags in ["canary"] and Tokens Output > 2000: find verbose canary responses

Where Filters Are Used

When you configure an evaluation trigger or save a search, you’re building a filter using this same system. An empty filter means “match all traces.”

Next Steps