Transform operators
Transform operators follow a spanset filter after a pipe (|) and reshape what the search returns — extra attributes with select, grouping with by.
by
Groups the matching spans by the value of an attribute, returning one span set per distinct value — a quick way to see which services or operations contribute matches.
select
Requests additional attributes or intrinsics in the returned span sets, so the values appear in the search results without opening each trace.
Parameters
| Parameter | Required | Description |
|---|---|---|
|
Required |
One or more attributes ( |
Example
Return the demo spans together with their operation name and service attribute.
{.service_name = "demo-python-service"} | select(name, .service_name)
| Root service | Root span | Duration |
|---|---|---|
demo-python-service |
database |
50 ms |
demo-python-service |
database |
50 ms |
demo-python-service |
database |
50 ms |
|
|