Get distinct attribute values in timeframe? #2236
-
I am interested in a odd query that returns distinct |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
As it's designed now, yes. TraceQL always returns a set of spans. There is a long term goal that it can also return metrics but that is not on the immediate roadmap. We are, however, currently just beginning work on a more dynamic way to generate metrics from spans (more dynamic then the canned metrics from metrics-generator). I will @mdisibio b/c he is starting this work and may be able to share more.
TraceQL aggregates will still be built around the concept of selecting traces. For instance if you wanted to find a trace that had more than 1 error in any namespace you could write something like:
|
Beta Was this translation helpful? Give feedback.
-
@joe-elliott , maybe related functionality , how does autocomplete in grafana TraceQL UI list the distinct values for an attribute ? |
Beta Was this translation helpful? Give feedback.
As it's designed now, yes. TraceQL always returns a set of spans. There is a long term goal that it can also return metrics but that is not on the immediate roadmap. We are, however, currently just beginning work on a more dynamic way to generate metrics from spans (more dynamic then the canned metrics from metrics-generator). I will @mdisibio b/c he is starting this work and may be able to share more.
TraceQL aggregates will still be built around the concept of selecting traces. For instance if you wanted to find a trace that had more tha…