Logical operators
Table of Contents
Logical operators combine conditions within a spanset filter. All conditions apply to the same span; matching across different spans of a trace (structural operators) is not supported on Kloudfuse.
And (&&)
Combines conditions so that a span matches only when every condition holds. This is the workhorse for narrowing a search: service plus operation, service plus latency, and so on.
Parameters
| Parameter | Required | Description |
|---|---|---|
|
Required |
Any attribute or intrinsic comparison. |
Example
Find the Python demo service’s outbound client spans.
{.service_name = "demo-python-service" && kind = client}
| Root service | Root span | Duration |
|---|---|---|
demo-python-service |
database |
50 ms |
demo-python-service |
database |
50 ms |
demo-python-service |
database |
50 ms |
|
Both conditions are evaluated against the same span. Cross-span (structural) matching is not supported: TraceQL. |