Skip to main content
A filter is a set of fields. Every field that you set must hold on the span. The examples use the sample data. Text, kind and time together:
A time range. to is not in the range:
Tag, service and environment:

Attributes

A dot is a step in the path. So user.plan matches the nested {"user": {"plan": "pro"}} and also the flat OpenTelemetry key "user.plan". Resource attributes of OpenTelemetry are under resource (for example resource.host.name).

AND, OR, NOT

and: [filter]: every one holds. or: [filter]: at least one holds. not: filter: it does not hold. They sit next to the other fields. Tool calls, or spans of the model gpt-y:
Spans that do not have the model gpt-x. A span with no model counts too: it does not have that value.
Agent runs (of user u2, or with the word “refund”) that are not named “chat”:
Nested: (a tool call or a model call) and not (failed, or of the model gpt-y):
A filter can be at most 32 levels deep. Each and, or and not is one level.

Questions about whole traces

Match a trace by its spans, its root, its scores and its totals.