File tree 2 files changed +11
-5
lines changed
static/app/views/insights/common/components/widgets
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ import {MutableSearch} from 'sentry/utils/tokenizeSearch';
2
2
import { Referrer } from 'sentry/views/insights/cache/referrers' ;
3
3
import { BASE_FILTERS } from 'sentry/views/insights/cache/settings' ;
4
4
import { InsightsLineChartWidget } from 'sentry/views/insights/common/components/insightsLineChartWidget' ;
5
+ import type { LoadableChartWidgetProps } from 'sentry/views/insights/common/components/widgets/types' ;
5
6
import { useSpanMetricsSeries } from 'sentry/views/insights/common/queries/useDiscoverSeries' ;
6
7
import { DataTitles } from 'sentry/views/insights/common/views/spans/types' ;
7
8
import { SpanFunction } from 'sentry/views/insights/types' ;
8
9
9
10
const { CACHE_MISS_RATE } = SpanFunction ;
10
11
11
- export default function CacheMissRateWidget ( ) {
12
+ export default function CacheMissRateWidget ( props : LoadableChartWidgetProps ) {
12
13
const {
13
14
isPending : isCacheMissRateLoading ,
14
15
data : cacheMissRateData ,
@@ -19,10 +20,12 @@ export default function CacheMissRateWidget() {
19
20
search : MutableSearch . fromQueryObject ( BASE_FILTERS ) ,
20
21
transformAliasToInputFormat : true ,
21
22
} ,
22
- Referrer . LANDING_CACHE_HIT_MISS_CHART
23
+ Referrer . LANDING_CACHE_HIT_MISS_CHART ,
24
+ props . pageFilters
23
25
) ;
24
26
return (
25
27
< InsightsLineChartWidget
28
+ { ...props }
26
29
id = "cacheMissRateWidget"
27
30
title = { DataTitles [ `cache_miss_rate()` ] }
28
31
series = { [ cacheMissRateData [ `${ CACHE_MISS_RATE } ()` ] ] }
Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ import {MutableSearch} from 'sentry/utils/tokenizeSearch';
2
2
import { Referrer } from 'sentry/views/insights/cache/referrers' ;
3
3
import { BASE_FILTERS } from 'sentry/views/insights/cache/settings' ;
4
4
import { InsightsLineChartWidget } from 'sentry/views/insights/common/components/insightsLineChartWidget' ;
5
+ import type { LoadableChartWidgetProps } from 'sentry/views/insights/common/components/widgets/types' ;
5
6
import { useSpanMetricsSeries } from 'sentry/views/insights/common/queries/useDiscoverSeries' ;
6
7
import { getThroughputChartTitle } from 'sentry/views/insights/common/views/spans/types' ;
7
8
8
- export default function CacheThroughputWidget ( ) {
9
+ export default function CacheThroughputChartWidget ( props : LoadableChartWidgetProps ) {
9
10
const {
10
11
isPending : isThroughputDataLoading ,
11
12
data : throughputData ,
@@ -16,12 +17,14 @@ export default function CacheThroughputWidget() {
16
17
yAxis : [ 'epm()' ] ,
17
18
transformAliasToInputFormat : true ,
18
19
} ,
19
- Referrer . LANDING_CACHE_THROUGHPUT_CHART
20
+ Referrer . LANDING_CACHE_THROUGHPUT_CHART ,
21
+ props . pageFilters
20
22
) ;
21
23
22
24
return (
23
25
< InsightsLineChartWidget
24
- id = "cacheThroughputWidget"
26
+ { ...props }
27
+ id = "cacheThroughputChartWidget"
25
28
title = { getThroughputChartTitle ( 'cache.get_item' ) }
26
29
series = { [ throughputData [ 'epm()' ] ] }
27
30
isLoading = { isThroughputDataLoading }
You can’t perform that action at this time.
0 commit comments