# TraceQL

[TraceQL](https://grafana.com/docs/tempo/latest/traceql/) is the Grafana query language that selects traces based on:

- Span and resource attributes, timing, and duration
- Basic aggregates: `count()`, `avg()`, `min()`, `max()`, and `sum()`

Kloudfuse supports querying spans using TraceQL only from its embedded Grafana configuration. The corresponding datasource is `KfuseTraceDatasource`.

Trace Analytics do not rely on TraceQL, and both generated and saved dashboards and alerts do not use TraceQL.
