What's new from Grafana Labsbreadcrumb arrow Faster TraceQL queries with anchored regular expressions in Grafana Cloud Traces
What's new from Grafana Labs
What's new from Grafana Labs
Generally AvailableTraces
Release date: 2024-12-09

Faster TraceQL queries with anchored regular expressions in Grafana Cloud Traces

TraceQL queries now use regular expressions that are anchored at both ends. This change makes the queries faster and matches the behavior of PromQL, where regular expressions are also fully anchored.

This is a breaking change, where the query: { span.foo =~ "bar" } is now treated as: { span.foo =~ "^bar$" }.

If you use TraceQL with regular expressions in your Grafana dashboards and you want the unanchored behavior, update the queries to use the unanchored version, such as { span.foo =~ ".*bar.*"}.


Related What's new posts