@@ -4,7 +4,6 @@ import styled from '@emotion/styled';
4
4
5
5
import Feature from 'sentry/components/acl/feature' ;
6
6
import FeatureBadge from 'sentry/components/badge/featureBadge' ;
7
- import Tag from 'sentry/components/badge/tag' ;
8
7
import type { ButtonProps } from 'sentry/components/button' ;
9
8
import { Button } from 'sentry/components/button' ;
10
9
import DropdownButton from 'sentry/components/dropdownButton' ;
@@ -15,10 +14,7 @@ import {IconAdd} from 'sentry/icons';
15
14
import { t } from 'sentry/locale' ;
16
15
import { space } from 'sentry/styles/space' ;
17
16
import { trackAnalytics } from 'sentry/utils/analytics' ;
18
- import {
19
- hasCustomMetrics ,
20
- hasCustomMetricsExtractionRules ,
21
- } from 'sentry/utils/metrics/features' ;
17
+ import { hasCustomMetrics } from 'sentry/utils/metrics/features' ;
22
18
import useOrganization from 'sentry/utils/useOrganization' ;
23
19
import { DataSet } from 'sentry/views/dashboards/widgetBuilder/utils' ;
24
20
@@ -158,13 +154,9 @@ export function AddWidgetButton({onAddWidget, ...buttonProps}: Props & ButtonPro
158
154
if ( hasCustomMetrics ( organization ) ) {
159
155
menuItems . push ( {
160
156
key : DataSet . METRICS ,
161
- label : t ( 'Custom Metrics' ) ,
157
+ label : t ( 'Metrics' ) ,
162
158
onAction : ( ) => handleAction ( DataSet . METRICS ) ,
163
- trailingItems : hasCustomMetricsExtractionRules ( organization ) ? (
164
- < Tag type = "warning" > { t ( 'deprecated' ) } </ Tag >
165
- ) : (
166
- < FeatureBadge type = "beta" />
167
- ) ,
159
+ trailingItems : < FeatureBadge type = "beta" /> ,
168
160
} ) ;
169
161
}
170
162
0 commit comments