Browse Source

ref(frontend): Change performance wording to "Tracing" (#75518)

Renaming of the rest of "Performance Monitoring" and "Performance"
occurrences in the frontend.
"Performance Web Vitals", "Performance Issues" and "Performance" in the
sidebar are left as-is.

Added some comments myself as there are so many repetitive changes.

ref (Onboarding "Tracing" renaming):
https://github.com/getsentry/sentry/pull/75331
Sigrid Huemer 7 months ago
parent
commit
8b780e9394

+ 1 - 1
static/app/components/metrics/metricSamplesTable.tsx

@@ -251,7 +251,7 @@ export function MetricSamplesTable({
     if (!hasPerformance) {
     if (!hasPerformance) {
       return (
       return (
         <PerformanceEmptyState withIcon={false}>
         <PerformanceEmptyState withIcon={false}>
-          <p>{t('You need to set up performance monitoring to collect samples.')}</p>
+          <p>{t('You need to set up tracing to collect samples.')}</p>
           <LinkButton
           <LinkButton
             priority="primary"
             priority="primary"
             external
             external

+ 2 - 2
static/app/gettingStartedDocs/apple/ios.tsx

@@ -69,7 +69,7 @@ func application(_ application: UIApplication,
           params.isPerformanceSelected
           params.isPerformanceSelected
             ? `
             ? `
 
 
-        // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
+        // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
         // We recommend adjusting this value in production.
         // We recommend adjusting this value in production.
         options.tracesSampleRate = 1.0`
         options.tracesSampleRate = 1.0`
             : ''
             : ''
@@ -99,7 +99,7 @@ struct SwiftUIApp: App {
               params.isPerformanceSelected
               params.isPerformanceSelected
                 ? `
                 ? `
 
 
-            // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
+            // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
             // We recommend adjusting this value in production.
             // We recommend adjusting this value in production.
             options.tracesSampleRate = 1.0`
             options.tracesSampleRate = 1.0`
                 : ''
                 : ''

+ 2 - 2
static/app/gettingStartedDocs/apple/macos.tsx

@@ -34,7 +34,7 @@ func applicationDidFinishLaunching(_ aNotification: Notification) {
           params.isPerformanceSelected
           params.isPerformanceSelected
             ? `
             ? `
 
 
-        // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
+        // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
         // We recommend adjusting this value in production.
         // We recommend adjusting this value in production.
         options.tracesSampleRate = 1.0`
         options.tracesSampleRate = 1.0`
             : ''
             : ''
@@ -64,7 +64,7 @@ struct SwiftUIApp: App {
               params.isPerformanceSelected
               params.isPerformanceSelected
                 ? `
                 ? `
 
 
-            // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
+            // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
             // We recommend adjusting this value in production.
             // We recommend adjusting this value in production.
             options.tracesSampleRate = 1.0`
             options.tracesSampleRate = 1.0`
                 : ''
                 : ''

+ 2 - 4
static/app/gettingStartedDocs/bun/bun.spec.tsx

@@ -19,7 +19,7 @@ describe('bun onboarding docs', function () {
     ).toBeInTheDocument();
     ).toBeInTheDocument();
   });
   });
 
 
-  it('renders without performance monitoring', function () {
+  it('renders without tracing', function () {
     renderWithOnboardingLayout(docs, {
     renderWithOnboardingLayout(docs, {
       selectedProducts: [],
       selectedProducts: [],
     });
     });
@@ -30,8 +30,6 @@ describe('bun onboarding docs', function () {
     ).not.toBeInTheDocument();
     ).not.toBeInTheDocument();
 
 
     // Renders next steps
     // Renders next steps
-    expect(
-      screen.getByRole('link', {name: 'Performance Monitoring'})
-    ).toBeInTheDocument();
+    expect(screen.getByRole('link', {name: 'Tracing'})).toBeInTheDocument();
   });
   });
 });
 });

+ 2 - 2
static/app/gettingStartedDocs/bun/bun.tsx

@@ -33,7 +33,7 @@ Sentry.init({
   dsn: "${params.dsn.public}",${
   dsn: "${params.dsn.public}",${
     params.isPerformanceSelected
     params.isPerformanceSelected
       ? `
       ? `
-  // Performance Monitoring
+  // Tracing
   tracesSampleRate: 1.0, // Capture 100% of the transactions`
   tracesSampleRate: 1.0, // Capture 100% of the transactions`
       : ''
       : ''
   }
   }
@@ -98,7 +98,7 @@ const onboarding: OnboardingConfig = {
       : [
       : [
           {
           {
             id: 'performance-monitoring',
             id: 'performance-monitoring',
-            name: t('Performance Monitoring'),
+            name: t('Tracing'),
             description: t(
             description: t(
               'Track down transactions to connect the dots between 10-second page loads and poor-performing API calls or slow database queries.'
               'Track down transactions to connect the dots between 10-second page loads and poor-performing API calls or slow database queries.'
             ),
             ),

+ 2 - 2
static/app/gettingStartedDocs/capacitor/capacitor.tsx

@@ -121,7 +121,7 @@ const getSentryInitLayout = (params: Params, siblingOption: string): string => {
   ${
   ${
     params.isPerformanceSelected
     params.isPerformanceSelected
       ? `
       ? `
-        // Performance Monitoring
+        // Tracing
         tracesSampleRate: 1.0, //  Capture 100% of the transactions`
         tracesSampleRate: 1.0, //  Capture 100% of the transactions`
       : ''
       : ''
   }${
   }${
@@ -255,7 +255,7 @@ const onboarding: OnboardingConfig<PlatformOptions> = {
       ? null
       ? null
       : {
       : {
           id: 'performance-monitoring',
           id: 'performance-monitoring',
-          name: t('Performance Monitoring'),
+          name: t('Tracing'),
           description: t(
           description: t(
             'Track down transactions to connect the dots between 10-second page loads and poor-performing API calls or slow database queries.'
             'Track down transactions to connect the dots between 10-second page loads and poor-performing API calls or slow database queries.'
           ),
           ),

+ 1 - 1
static/app/gettingStartedDocs/dart/dart.spec.tsx

@@ -18,7 +18,7 @@ describe('dart onboarding docs', function () {
     expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
     expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
     expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
     expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
     expect(screen.getByRole('heading', {name: 'Verify'})).toBeInTheDocument();
     expect(screen.getByRole('heading', {name: 'Verify'})).toBeInTheDocument();
-    expect(screen.getByRole('heading', {name: 'Performance'})).toBeInTheDocument();
+    expect(screen.getByRole('heading', {name: 'Tracing'})).toBeInTheDocument();
 
 
     // Renders SDK version from registry
     // Renders SDK version from registry
     expect(
     expect(

+ 2 - 2
static/app/gettingStartedDocs/dart/dart.tsx

@@ -27,7 +27,7 @@ import 'package:sentry/sentry.dart';
 Future<void> main() async {
 Future<void> main() async {
   await Sentry.init((options) {
   await Sentry.init((options) {
     options.dsn = '${params.dsn.public}';
     options.dsn = '${params.dsn.public}';
-    // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
+    // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
     // We recommend adjusting this value in production.
     // We recommend adjusting this value in production.
     options.tracesSampleRate = 1.0;
     options.tracesSampleRate = 1.0;
   });
   });
@@ -256,7 +256,7 @@ const onboarding: OnboardingConfig = {
       ],
       ],
     },
     },
     {
     {
-      title: t('Performance'),
+      title: t('Tracing'),
       description: t(
       description: t(
         "You'll be able to monitor the performance of your app using the SDK. For example:"
         "You'll be able to monitor the performance of your app using the SDK. For example:"
       ),
       ),

+ 2 - 4
static/app/gettingStartedDocs/deno/deno.spec.tsx

@@ -19,7 +19,7 @@ describe('deno onboarding docs', function () {
     ).toBeInTheDocument();
     ).toBeInTheDocument();
   });
   });
 
 
-  it('renders without performance monitoring', function () {
+  it('renders without tracing', function () {
     renderWithOnboardingLayout(docs, {
     renderWithOnboardingLayout(docs, {
       selectedProducts: [],
       selectedProducts: [],
     });
     });
@@ -30,8 +30,6 @@ describe('deno onboarding docs', function () {
     ).not.toBeInTheDocument();
     ).not.toBeInTheDocument();
 
 
     // Renders next steps
     // Renders next steps
-    expect(
-      screen.getByRole('link', {name: 'Performance Monitoring'})
-    ).toBeInTheDocument();
+    expect(screen.getByRole('link', {name: 'Tracing'})).toBeInTheDocument();
   });
   });
 });
 });

+ 1 - 1
static/app/gettingStartedDocs/deno/deno.tsx

@@ -107,7 +107,7 @@ const onboarding: OnboardingConfig = {
       : [
       : [
           {
           {
             id: 'performance-monitoring',
             id: 'performance-monitoring',
-            name: t('Performance Monitoring'),
+            name: t('Tracing'),
             description: t(
             description: t(
               'Track down transactions to connect the dots between 10-second page loads and poor-performing API calls or slow database queries.'
               'Track down transactions to connect the dots between 10-second page loads and poor-performing API calls or slow database queries.'
             ),
             ),

Some files were not shown because too many files changed in this diff