Skip to content

Commit bf3f67c

Browse files
feat(uptime): Rename "Allow {Tracing->Sampling}" (#81137)
1 parent bff86bb commit bf3f67c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

static/app/views/alerts/rules/uptime/uptimeAlertForm.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('Uptime Alert Form', function () {
5454
await userEvent.type(input('Name of header 1'), 'X-Something');
5555
await userEvent.type(input('Value of X-Something'), 'Header Value');
5656

57-
await userEvent.click(screen.getByRole('checkbox', {name: 'Allow Tracing'}));
57+
await userEvent.click(screen.getByRole('checkbox', {name: 'Allow Sampling'}));
5858

5959
const name = input('Uptime rule name');
6060
await userEvent.clear(name);
@@ -119,7 +119,7 @@ describe('Uptime Alert Form', function () {
119119
expect(screen.getByRole('menuitemradio', {name: 'POST'})).toBeChecked();
120120
await selectEvent.openMenu(input('Environment'));
121121
expect(screen.getByRole('menuitemradio', {name: 'prod'})).toBeChecked();
122-
expect(screen.getByRole('checkbox', {name: 'Allow Tracing'})).toBeChecked();
122+
expect(screen.getByRole('checkbox', {name: 'Allow Sampling'})).toBeChecked();
123123
});
124124

125125
it('handles simple edits', async function () {
@@ -194,7 +194,7 @@ describe('Uptime Alert Form', function () {
194194
await userEvent.type(input('Name of header 2'), 'X-Another');
195195
await userEvent.type(input('Value of X-Another'), 'Second Value');
196196

197-
await userEvent.click(screen.getByRole('checkbox', {name: 'Allow Tracing'}));
197+
await userEvent.click(screen.getByRole('checkbox', {name: 'Allow Sampling'}));
198198

199199
const name = input('Uptime rule name');
200200
await userEvent.clear(name);

static/app/views/alerts/rules/uptime/uptimeAlertForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export function UptimeAlertForm({project, handleDelete, rule}: Props) {
220220
/>
221221
<BooleanField
222222
name="traceSampling"
223-
label={t('Allow Tracing')}
223+
label={t('Allow Sampling')}
224224
showHelpInTooltip
225225
help={t(
226226
'Allows uptime checks to trigger traces if the checked service is configured with a Sentry SDK.'

0 commit comments

Comments
 (0)