From 21afbbdf15569b65c8fb48f65dd019b76ec873b9 Mon Sep 17 00:00:00 2001 From: Arthur Knaus Date: Fri, 15 Nov 2024 14:37:09 +0100 Subject: [PATCH] feat(dynamic-sampling): Copy changes and doc links --- static/app/views/settings/dynamicSampling/index.tsx | 13 ++++++++++++- .../settings/dynamicSampling/samplingBreakdown.tsx | 2 +- .../dynamicSampling/samplingModeSwitchModal.tsx | 5 ++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/static/app/views/settings/dynamicSampling/index.tsx b/static/app/views/settings/dynamicSampling/index.tsx index 18dbb781aeff76..e648a0c881c534 100644 --- a/static/app/views/settings/dynamicSampling/index.tsx +++ b/static/app/views/settings/dynamicSampling/index.tsx @@ -1,6 +1,7 @@ import {Fragment} from 'react'; import {Alert} from 'sentry/components/alert'; +import {LinkButton} from 'sentry/components/button'; import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle'; import {t} from 'sentry/locale'; import {hasDynamicSamplingCustomFeature} from 'sentry/utils/dynamicSampling/features'; @@ -20,7 +21,17 @@ export default function DynamicSamplingSettings() {
- + + {t('Read the docs')} + + } + />

{t( 'Dynamic sampling adaptively reduces the number of spans stored in Sentry without changing SDK sample rates. It allows you to keep the most relevant samples and obtain accurate high-level insights while limiting redundancy and stored span volume. You can customize sample rates and priorities in these settings to control which data is stored.' diff --git a/static/app/views/settings/dynamicSampling/samplingBreakdown.tsx b/static/app/views/settings/dynamicSampling/samplingBreakdown.tsx index 6dec26fcf06be2..3d4396930ec983 100644 --- a/static/app/views/settings/dynamicSampling/samplingBreakdown.tsx +++ b/static/app/views/settings/dynamicSampling/samplingBreakdown.tsx @@ -69,7 +69,7 @@ export function SamplingBreakdown({sampleCounts, sampleRates, ...props}: Props) return (

- {t('Breakdown of stored spans')} + {t('Breakdown of stored spans originating in these projects')} {t('Total: %s', formatAbbreviatedNumber(total))} diff --git a/static/app/views/settings/dynamicSampling/samplingModeSwitchModal.tsx b/static/app/views/settings/dynamicSampling/samplingModeSwitchModal.tsx index 4322775746f5da..7128aca5ca9159 100644 --- a/static/app/views/settings/dynamicSampling/samplingModeSwitchModal.tsx +++ b/static/app/views/settings/dynamicSampling/samplingModeSwitchModal.tsx @@ -101,8 +101,11 @@ function SamplingModeSwitchModal({ } ) : tct( - 'Switching to manual mode disables automatic adjustments. After the switch, you can configure individual sample rates for each project. Dynamic sampling priorities continue to apply within the projects. [link:Learn more]', + 'Switching to manual mode disables automatic adjustments. After the switch, you can configure individual sample rates for each project. [prioritiesLink:Dynamic sampling priorities] continue to apply within the projects. [link:Learn more]', { + prioritiesLink: ( + + ), link: ( ),