Skip to main content
What this builds. A side-by-side tour of every way to refine a query with .where(...). You’ll end up with. The same kinds of failure/interface filters expressed as equality kwargs, operator overloads, regex matches, OR groups, and chained ANDs.

Expected output

Use Filter for scope-level fields (TRACE_ID, PROJECT_ID, …) and FieldFilter for data columns (STATUS, ERROR_MESSAGE, …). Filter.eq on a data column raises a clear TypeError. != is not supported and raises NotImplementedError.

See also

Query basics

Scope and time-bound a query.

Events & traces

List the events your filters match.

Reference

Filter helpers, EventField operators, and enums.