Просмотр исходного кода

feat(sampling): Update server side sampling copy to the latest version (#37194)

Matej Minar 2 лет назад
Родитель
Сommit
7252ee5826

+ 2 - 2
static/app/components/assistant/getGuidesContent.tsx

@@ -235,7 +235,7 @@ export default function getGuidesContent(orgSlug: string | null): GuidesContent
           title: t('Activate your first rule'),
           target: 'sampling_rule_toggle',
           description: t(
-            'Start keeping what you need and dropping what you don’t - get up and running in minutes.'
+            'Activating a rule will take immediate effect, as well as any changes given to an active rule.'
           ),
           nextText: t('Activate Rule'),
           dismissText: t('Later'),
@@ -252,7 +252,7 @@ export default function getGuidesContent(orgSlug: string | null): GuidesContent
           title: t('Create a new sample rule'),
           target: 'add_conditional_rule',
           description: t(
-            'Define sample rules to retain the transactions you care about most such as the highest converting pages, critical API endpoints, or latency issues from your latest release. '
+            'Sample transactions under specific conditions, keeping what you need and dropping what you don’t.'
           ),
           dismissText: t('Enough already'),
         },

+ 1 - 1
static/app/routes.tsx

@@ -464,7 +464,7 @@ function buildRoutes() {
       </Route>
       <Route
         path="server-side-sampling/"
-        name={t('Server-side Sampling')}
+        name={t('Server-Side Sampling')}
         component={make(
           () => import('sentry/views/settings/project/server-side-sampling')
         )}

+ 1 - 1
static/app/views/settings/project/navigationConfiguration.tsx

@@ -69,7 +69,7 @@ export default function getConfiguration({
         },
         {
           path: `${pathPrefix}/server-side-sampling/`,
-          title: t('Server-side Sampling'),
+          title: t('Server-Side Sampling'),
           show: () => !!organization?.features?.includes('server-side-sampling'),
           description: t(
             "Per-Project basis solution to configure sampling rules within Sentry's UI"

+ 1 - 1
static/app/views/settings/project/server-side-sampling/index.tsx

@@ -22,7 +22,7 @@ export default function ServerSideSamplingContainer({project}: Props) {
         <FeatureDisabled
           alert={PanelAlert}
           features={['organization:server-side-sampling']}
-          featureName={t('Server-side Sampling')}
+          featureName={t('Server-Side Sampling')}
         />
       )}
     >

+ 2 - 2
static/app/views/settings/project/server-side-sampling/modals/recommendedStepsModal.tsx

@@ -141,7 +141,7 @@ export function RecommendedStepsModal({
               <h5>{t('Update the following SDK versions')}</h5>
               <TextBlock>
                 {t(
-                  'To ensure you are properly monitoring the performance of all your other services, we require you update to the latest version of the following SDK(s):'
+                  'To activate server-side sampling rules, it’s a requirement to update the following project SDK(s):'
                 )}
               </TextBlock>
               <UpgradeSDKfromProjects>
@@ -171,7 +171,7 @@ export function RecommendedStepsModal({
             <h5>{t('Increase your client-side transaction sample rate')}</h5>
             <TextBlock>
               {t(
-                'Once you’ve updated the above SDK(s), you can increase the client-side transaction sample rate in your application. This helps to ensure you are sending enough transactions to accurately monitor overall performance and ensure all transactions you have deemed important in your server-side sample rules are available. Below is the suggested rate we’ve calculated based on your organization’s usage and quota.'
+                'Here’s your optimal client(SDK) sample rate based on your organization’s usage and quota. To make this change, find the tracesSampleRate option in your SDK Config, modify it’s value to what’s suggested below and re-deploy.'
               )}
             </TextBlock>
             <div>

+ 1 - 1
static/app/views/settings/project/server-side-sampling/modals/specificConditionsModal/index.tsx

@@ -292,7 +292,7 @@ export function SpecificConditionsModal({
         <Fields>
           <Description>
             {t(
-              'Using a Trace ID, select all Transactions distributed across multiple projects/services which match your conditions.'
+              'Sample transactions under specific conditions. Multiple conditions are logically expressed as AND and OR for multiple values.'
             )}
           </Description>
           <StyledPanel>

+ 4 - 4
static/app/views/settings/project/server-side-sampling/modals/uniformRateModal.tsx

@@ -243,14 +243,14 @@ function UniformRateModal({
   return (
     <Fragment>
       <Header closeButton>
-        <h4>{t('Define a global sample rate')}</h4>
+        <h4>{t('Set a global sample rate')}</h4>
       </Header>
       <Body>
         <TextBlock>
           {tct(
-            'Set a global sample rate for the percent of transactions you want to process (Client) and those you want to index (Server) for your project. Below are suggested rates based on your organization’s usage and quota. Once set, the number of transactions processed and indexed for this project come from your organization’s overall quota and might impact the amount of transactions retained for other projects. [learnMoreLink:Learn more about quota management.]',
+            'Set a server-side sample rate for all transactions using our suggestion as a starting point. To accurately monitor overall performance, we also suggest changing your client(SDK) sample rate to allow more metrics to be processed. [learnMoreLink: Learn more about quota management].',
             {
-              learnMoreLink: <ExternalLink href="" />,
+              learnMoreLink: <ExternalLink href={SERVER_SIDE_SAMPLING_DOC_LINK} />,
             }
           )}
         </TextBlock>
@@ -312,7 +312,7 @@ function UniformRateModal({
                   {!isEdited && (
                     <QuestionTooltip
                       title={t(
-                        'These are suggested sample rates you can set based on your organization’s overall usage and quota.'
+                        'Optimal sample rates based on your organization’s usage and quota.'
                       )}
                       size="sm"
                     />

+ 2 - 2
static/app/views/settings/project/server-side-sampling/promo.tsx

@@ -21,10 +21,10 @@ export function Promo({onGetStarted, onReadDocs, hasAccess}: Props) {
     <StyledEmptyStateWarning withIcon={false}>
       <img src={onboardingServerSideSampling} />
       <Description>
-        <h3>{t('Set sample rules for your project')}</h3>
+        <h3>{t('Sample for relevancy')}</h3>
         <p>
           {t(
-            'Because every project is different – some need more events from high converting pages, critical API endpoints, or just want to focus on latency issues from the latest release – set multiple sample rules with different sample rates per project so you can keep what you need and drop what you don’t.'
+            'Create rules to sample transactions under specific conditions, keeping what you need and dropping what you don’t.'
           )}
         </p>
         <Actions gap={1}>

+ 1 - 1
static/app/views/settings/project/server-side-sampling/samplingSDKAlert.tsx

@@ -75,7 +75,7 @@ export function SamplingSDKAlert({
       }
     >
       {t(
-        'To ensure you are properly monitoring the performance of all your other services, we require you update to the latest version of the following SDK(s):'
+        'To activate server-side sampling rules, it’s a requirement to update the following project SDK(s):'
       )}
       <Projects>
         {recommendedSdkUpgrades.map(recommendedSdkUpgrade => (

+ 3 - 3
static/app/views/settings/project/server-side-sampling/serverSideSampling.tsx

@@ -398,12 +398,12 @@ export function ServerSideSampling({project}: Props) {
   const uniformRule = rules.find(isUniformRule);
 
   return (
-    <SentryDocumentTitle title={t('Server-side Sampling')}>
+    <SentryDocumentTitle title={t('Server-Side Sampling')}>
       <Fragment>
-        <SettingsPageHeader title={t('Server-side Sampling')} />
+        <SettingsPageHeader title={t('Server-Side Sampling')} />
         <TextBlock>
           {t(
-            'Server-side sampling lets you control what transactions Sentry retains by setting sample rules and rates so you see more of the transactions you want to explore further in Sentry – and less of the ones you don’t – without re-configuring the Sentry SDK and redeploying anything.'
+            'Enhance the performance monitoring experience by targeting which transactions are most valuable to your organization without the need for re-deployment.'
           )}
         </TextBlock>
         <PermissionAlert

Некоторые файлы не были показаны из-за большого количества измененных файлов