Skip to content

Commit 6d4e753

Browse files
authored
fix(dashboards): Simplify default EAP query (#80462)
The grouping by span.op was unnecessary and lead to a slow initial query. Simply showing count(span.duration) is the default that's shown in Explore as well.
1 parent d1aca0f commit 6d4e753

File tree

1 file changed

+4
-4
lines changed
  • static/app/views/dashboards/datasetConfig

1 file changed

+4
-4
lines changed

static/app/views/dashboards/datasetConfig/spans.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ import {generateFieldOptions} from 'sentry/views/discover/utils';
4141

4242
const DEFAULT_WIDGET_QUERY: WidgetQuery = {
4343
name: '',
44-
fields: ['span.op', 'avg(span.duration)'],
45-
columns: ['span.op'],
44+
fields: ['count(span.duration)'],
45+
columns: [],
4646
fieldAliases: [],
47-
aggregates: ['avg(span.duration)'],
47+
aggregates: ['count(span.duration)'],
4848
conditions: '',
49-
orderby: '-avg(span.duration)',
49+
orderby: '',
5050
};
5151

5252
const EAP_AGGREGATIONS = ALLOWED_EXPLORE_VISUALIZE_AGGREGATES.reduce((acc, aggregate) => {

0 commit comments

Comments
 (0)