Skip to content

Commit

Permalink
feat(uptime): Add "Learn more" link to Allow sampling help (#81205)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored Dec 17, 2024
1 parent 3b606f7 commit 151e6f7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions static/app/views/alerts/rules/uptime/uptimeAlertForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ import TextareaField from 'sentry/components/forms/fields/textareaField';
import TextField from 'sentry/components/forms/fields/textField';
import Form from 'sentry/components/forms/form';
import FormModel from 'sentry/components/forms/model';
import ExternalLink from 'sentry/components/links/externalLink';
import List from 'sentry/components/list';
import ListItem from 'sentry/components/list/listItem';
import Panel from 'sentry/components/panels/panel';
import Text from 'sentry/components/text';
import {t} from 'sentry/locale';
import {t, tct} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import type {Organization} from 'sentry/types/organization';
import type {Project} from 'sentry/types/project';
Expand Down Expand Up @@ -246,9 +247,14 @@ export function UptimeAlertForm({project, handleDelete, rule}: Props) {
<BooleanField
name="traceSampling"
label={t('Allow Sampling')}
showHelpInTooltip
help={t(
'Allows uptime checks to trigger traces if the checked service is configured with a Sentry SDK.'
showHelpInTooltip={{isHoverable: true}}
help={tct(
'Defer the sampling decision to a Sentry SDK configured in your application. Disable to prevent all span sampling. [link:Learn more].',
{
link: (
<ExternalLink href="https://docs.sentry.io/product/alerts/uptime-monitoring/uptime-tracing/" />
),
}
)}
flexibleControlStateSize
/>
Expand Down

0 comments on commit 151e6f7

Please sign in to comment.