|
@@ -3,7 +3,8 @@ import styled from '@emotion/styled';
|
|
|
|
|
|
import {getInterval} from 'sentry/components/charts/utils';
|
|
import {getInterval} from 'sentry/components/charts/utils';
|
|
import {t} from 'sentry/locale';
|
|
import {t} from 'sentry/locale';
|
|
-import {formatAbbreviatedNumber} from 'sentry/utils/formatters';
|
|
|
|
|
|
+import {RateUnit} from 'sentry/utils/discover/fields';
|
|
|
|
+import {formatRate} from 'sentry/utils/formatters';
|
|
import {decodeList} from 'sentry/utils/queryString';
|
|
import {decodeList} from 'sentry/utils/queryString';
|
|
import {MutableSearch} from 'sentry/utils/tokenizeSearch';
|
|
import {MutableSearch} from 'sentry/utils/tokenizeSearch';
|
|
import {useLocation} from 'sentry/utils/useLocation';
|
|
import {useLocation} from 'sentry/utils/useLocation';
|
|
@@ -36,12 +37,12 @@ export function TracesChart({}: Props) {
|
|
),
|
|
),
|
|
yAxis: ['count()'],
|
|
yAxis: ['count()'],
|
|
interval: getInterval(pageFilters.selection.datetime, 'metrics'),
|
|
interval: getInterval(pageFilters.selection.datetime, 'metrics'),
|
|
|
|
+ overriddenRoute: 'traces-stats',
|
|
},
|
|
},
|
|
- 'testing.test'
|
|
|
|
|
|
+ 'api.trace-explorer.stats'
|
|
);
|
|
);
|
|
|
|
|
|
const seriesData = spanIndexedCountSeries.data?.['count()'];
|
|
const seriesData = spanIndexedCountSeries.data?.['count()'];
|
|
- seriesData.z = 1; // TODO:: This shouldn't be required, but we're putting this in for now to avoid split lines being shown on top of the chart data :).
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
<ChartContainer>
|
|
<ChartContainer>
|
|
@@ -62,7 +63,7 @@ export function TracesChart({}: Props) {
|
|
type={ChartType.AREA}
|
|
type={ChartType.AREA}
|
|
aggregateOutputFormat="number"
|
|
aggregateOutputFormat="number"
|
|
tooltipFormatterOptions={{
|
|
tooltipFormatterOptions={{
|
|
- valueFormatter: value => formatAbbreviatedNumber(value),
|
|
|
|
|
|
+ valueFormatter: value => formatRate(value, RateUnit.PER_MINUTE),
|
|
}}
|
|
}}
|
|
preserveIncompletePoints
|
|
preserveIncompletePoints
|
|
/>
|
|
/>
|