File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
projects/observability/src/shared/components/explore-query-editor Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ export class ExploreVisualizationBuilder implements OnDestroy {
149
149
defaultIfEmpty < AttributeMetadata [ ] > ( [ ] ) ,
150
150
map ( attributes =>
151
151
attributes
152
- . filter ( attribute => ! attribute . onlySupportsAggregation )
152
+ . filter ( attribute => ! attribute . onlySupportsGrouping )
153
153
. map ( attribute => this . specBuilder . attributeSpecificationForKey ( attribute . name ) )
154
154
) ,
155
155
map ( specsFromRequest => uniqBy ( specsFromRequest , spec => spec . name ) )
@@ -205,11 +205,10 @@ export class ExploreVisualizationBuilder implements OnDestroy {
205
205
}
206
206
207
207
private buildDefaultSeries ( context : string ) : ExploreSeries {
208
- const attributeKey = context === SPAN_SCOPE ? 'duration' : 'calls' ; // Todo revisit this
209
- const aggregation = context === SPAN_SCOPE ? MetricAggregationType . Average : MetricAggregationType . Count ;
208
+ const attributeKey = context === SPAN_SCOPE ? 'spans' : 'calls' ;
210
209
211
210
return {
212
- specification : this . exploreSpecBuilder . exploreSpecificationForKey ( attributeKey , aggregation ) ,
211
+ specification : this . exploreSpecBuilder . exploreSpecificationForKey ( attributeKey , MetricAggregationType . Count ) ,
213
212
visualizationOptions : {
214
213
type : CartesianSeriesVisualizationType . Column
215
214
}
You can’t perform that action at this time.
0 commit comments