Tempo: Metrics summary (#73201)
* Metrics summary * Update query * Remove colors * Update states * Add group by into its own component * Add group by to search and traceql tabs * Add spacing for group by * Update span kind values * Update span status code values * Update query based on target + group by * Cleanup * Only add targetQuery if not empty * Add kind=server to table * Update groupBy query logic * Add feature toggle * Use feature toggle * Self review * Update target query * Make gen-cue * Tweak query * Update states * useRef for onChange * Fix for steaming in search tab * Add loading state tests * metricsSummary tests * Datasource tests * Review updates * Update aria-label * Update test * Simplify response state * More manual testing and feedback from sync call * Prettier and fix test * Remove group by component from traceql tab * Cleanup, tests, error messages * Add feature tracking
This commit is contained in:
@@ -31,9 +31,10 @@ const (
|
||||
|
||||
// Defines values for TraceqlSearchScope.
|
||||
const (
|
||||
TraceqlSearchScopeResource TraceqlSearchScope = "resource"
|
||||
TraceqlSearchScopeSpan TraceqlSearchScope = "span"
|
||||
TraceqlSearchScopeUnscoped TraceqlSearchScope = "unscoped"
|
||||
TraceqlSearchScopeIntrinsic TraceqlSearchScope = "intrinsic"
|
||||
TraceqlSearchScopeResource TraceqlSearchScope = "resource"
|
||||
TraceqlSearchScopeSpan TraceqlSearchScope = "span"
|
||||
TraceqlSearchScopeUnscoped TraceqlSearchScope = "unscoped"
|
||||
)
|
||||
|
||||
// These are the common properties available to all queries in all datasources.
|
||||
@@ -81,6 +82,9 @@ type TempoQuery struct {
|
||||
Datasource *any `json:"datasource,omitempty"`
|
||||
Filters []TraceqlFilter `json:"filters"`
|
||||
|
||||
// Filters that are used to query the metrics summary
|
||||
GroupBy []TraceqlFilter `json:"groupBy,omitempty"`
|
||||
|
||||
// Hide true if query is disabled (ie should not be returned to the dashboard)
|
||||
// Note this does not always imply that the query should not be executed since
|
||||
// the results from a hidden query may be used as the input to other queries (SSE etc)
|
||||
|
||||
Reference in New Issue
Block a user