Skip to content

Commit ce1be3a

Browse files
ref(metrics): Update copies (#74268)
1 parent 752942f commit ce1be3a

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

Diff for: static/app/components/metrics/customMetricsEventData.spec.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ describe('CustomMetricsEventData', () => {
106106
}
107107
);
108108

109-
expect(screen.getByText('Emitted Metrics')).toBeInTheDocument();
109+
expect(screen.getByText('Custom Metrics')).toBeInTheDocument();
110110

111111
expect(screen.getByText('my.metric')).toBeInTheDocument();
112112
expect(screen.getByRole('link', {name: 'View Metric'})).toBeInTheDocument();
@@ -140,7 +140,7 @@ describe('CustomMetricsEventData', () => {
140140
{organization}
141141
);
142142

143-
expect(screen.getByText('Emitted Metrics')).toBeInTheDocument();
143+
expect(screen.getByText('Custom Metrics')).toBeInTheDocument();
144144

145145
expect(screen.getByText('my.metric')).toBeInTheDocument();
146146
expect(screen.getByRole('link', {name: 'View Metric'})).toBeInTheDocument();
@@ -174,7 +174,7 @@ describe('CustomMetricsEventData', () => {
174174
}
175175
);
176176

177-
expect(screen.getByText('Emitted Metrics')).toBeInTheDocument();
177+
expect(screen.getByText('Custom Metrics')).toBeInTheDocument();
178178

179179
expect(screen.getByText('my.metric')).toBeInTheDocument();
180180
expect(screen.getByRole('link', {name: 'View Metric'})).toBeInTheDocument();
@@ -209,7 +209,7 @@ describe('CustomMetricsEventData', () => {
209209
}
210210
);
211211

212-
expect(screen.getByText('Emitted Metrics')).toBeInTheDocument();
212+
expect(screen.getByText('Custom Metrics')).toBeInTheDocument();
213213

214214
expect(screen.getByText('my.metric')).toBeInTheDocument();
215215
expect(screen.getByRole('link', {name: 'View Metric'})).toBeInTheDocument();
@@ -308,7 +308,7 @@ describe('CustomMetricsEventData', () => {
308308
}
309309
);
310310

311-
expect(screen.getByText('Emitted Metrics')).toBeInTheDocument();
311+
expect(screen.getByText('Custom Metrics')).toBeInTheDocument();
312312

313313
expect(screen.getByText('my.counter')).toBeInTheDocument();
314314
expect(screen.getAllByText('my.distribution')).toHaveLength(2);

Diff for: static/app/components/metrics/customMetricsEventData.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export function CustomMetricsEventData({
230230

231231
return (
232232
<TraceDrawerComponents.SectionCard
233-
title={t('Emitted Metrics')}
233+
title={t('Custom Metrics')}
234234
items={items}
235235
sortAlphabetically
236236
/>

Diff for: static/app/views/metrics/pageHeaderActions.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export function PageHeaderActions({showAddMetricButton, addCustomMetric}: Props)
9595
},
9696
{
9797
leadingItems: [<IconSettings key="icon" />],
98-
key: 'metrics-settings',
99-
label: t('Metrics Settings'),
98+
key: 'configure-metric',
99+
label: t('Configure Metric'),
100100
onAction: () => navigateTo(`/settings/projects/:projectId/metrics/`, router),
101101
},
102102
],

Diff for: static/app/views/settings/projectMetrics/customMetricsTable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function CustomMetricsTable({project}: Props) {
9797
<Fragment>
9898
<SearchWrapper>
9999
<Title>
100-
<h6>{t('Emitted Metrics')}</h6>
100+
<h6>{t('Custom Metrics')}</h6>
101101
{hasCustomMetricsExtractionRules(organization) && (
102102
<Tag type="warning">{t('deprecated')}</Tag>
103103
)}

Diff for: static/app/views/settings/projectMetrics/metricsExtractionRuleForm.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ export function MetricsExtractionRuleForm({
295295
}}
296296
/>
297297
<FormField
298-
label={t('Queries')}
298+
label={t('Filters')}
299299
help={t(
300-
'Define queries to narrow down the metric extraction to a specific set of spans.'
300+
'Define filters to narrow down the metric to a specific set of spans.'
301301
)}
302302
name="conditions"
303303
inline={false}

Diff for: static/app/views/settings/projectMetrics/metricsExtractionRulesTable.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function MetricsExtractionRulesTable({project}: Props) {
8282
return (
8383
<Fragment>
8484
<SearchWrapper>
85-
<h6>{t('Span-based Metrics')}</h6>
85+
<h6>{t('Span Metrics')}</h6>
8686
<FlexSpacer />
8787
<SearchBar
8888
placeholder={t('Search Metrics')}
@@ -147,7 +147,7 @@ function RulesTable({
147147
emptyMessage={
148148
hasSearch
149149
? t('No metrics match the query.')
150-
: t('You have not created any span-based metrics yet.')
150+
: t('You have not created any span metrics yet.')
151151
}
152152
isEmpty={extractionRules.length === 0}
153153
isLoading={isLoading}

0 commit comments

Comments
 (0)