@@ -17,7 +17,7 @@ import usePageFilters from 'sentry/utils/usePageFilters';
17
17
import usePrevious from 'sentry/utils/usePrevious' ;
18
18
import useProjects from 'sentry/utils/useProjects' ;
19
19
import { Dataset } from 'sentry/views/alerts/rules/metric/types' ;
20
- import { determineSeriesSampleCount } from 'sentry/views/alerts/rules/metric/utils/determineSeriesSampleCount' ;
20
+ import { determineSeriesSampleCountAndIsSampled } from 'sentry/views/alerts/rules/metric/utils/determineSeriesSampleCount' ;
21
21
import { TimeSeriesWidgetVisualization } from 'sentry/views/dashboards/widgets/timeSeriesWidget/timeSeriesWidgetVisualization' ;
22
22
import { Widget } from 'sentry/views/dashboards/widgets/widget/widget' ;
23
23
import { EXPLORE_CHART_TYPE_OPTIONS } from 'sentry/views/explore/charts' ;
@@ -31,7 +31,7 @@ import {
31
31
useUpdateQueryAtIndex ,
32
32
} from 'sentry/views/explore/multiQueryMode/locationUtils' ;
33
33
import { INGESTION_DELAY } from 'sentry/views/explore/settings' ;
34
- import { combineConfidenceForSeries } from 'sentry/views/explore/utils' ;
34
+ import { combineConfidenceForSeries , showConfidence } from 'sentry/views/explore/utils' ;
35
35
import { ChartType } from 'sentry/views/insights/common/components/chart' ;
36
36
import type { useSortedTimeSeries } from 'sentry/views/insights/common/queries/useSortedTimeSeries' ;
37
37
import { getAlertsUrl } from 'sentry/views/insights/common/utils/getAlertsUrl' ;
@@ -123,7 +123,7 @@ export function MultiQueryModeChart({
123
123
] ) ;
124
124
125
125
const { data, error, loading} = getSeries ( ) ;
126
- const sampleCount = determineSeriesSampleCount ( data , isTopN ) ;
126
+ const { sampleCount, isSampled } = determineSeriesSampleCountAndIsSampled ( data , isTopN ) ;
127
127
128
128
const visualizationType =
129
129
queryParts . chartType === ChartType . LINE
@@ -301,11 +301,13 @@ export function MultiQueryModeChart({
301
301
/>
302
302
}
303
303
Footer = {
304
- < ConfidenceFooter
305
- sampleCount = { sampleCount }
306
- confidence = { confidence }
307
- topEvents = { isTopN ? numSeries : undefined }
308
- />
304
+ showConfidence ( isSampled ) && (
305
+ < ConfidenceFooter
306
+ sampleCount = { sampleCount }
307
+ confidence = { confidence }
308
+ topEvents = { isTopN ? numSeries : undefined }
309
+ />
310
+ )
309
311
}
310
312
/>
311
313
) ;
0 commit comments