Browse Source

fix(profiling) correct docs (#80522)

This is an incorrect signature, the signature is profiler.startProfiler
and profiler.stopProfiler
Jonas 4 months ago
parent
commit
0cfc28e76d

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

@@ -99,7 +99,7 @@ func application(_ application: UIApplication,
     // this code will be profiled
     //
     // Calls to stopProfiler are optional - if you don't stop the profiler, it will keep profiling
-    // your application until the process exits or stopProfiling is called.
+    // your application until the process exits or stopProfiler is called.
     SentrySDK.stopProfiler()`
         : ''
     }
@@ -144,7 +144,7 @@ struct SwiftUIApp: App {
         // this code will be profiled
         //
         // Calls to stopProfiler are optional - if you don't stop the profiler, it will keep profiling
-        // your application until the process exits or stopProfiling is called.
+        // your application until the process exits or stopProfiler is called.
         SentrySDK.stopProfiler()`
             : ''
         }

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

@@ -59,7 +59,7 @@ func applicationDidFinishLaunching(_ aNotification: Notification) {
     // this code will be profiled
     //
     // Calls to stopProfiler are optional - if you don't stop the profiler, it will keep profiling
-    // your application until the process exits or stopProfiling is called.
+    // your application until the process exits or stopProfiler is called.
     SentrySDK.stopProfiler()`
         : ''
     }

+ 2 - 2
static/app/gettingStartedDocs/node/awslambda.spec.tsx

@@ -102,10 +102,10 @@ describe('awslambda onboarding docs', function () {
 
     // Should have start and stop profiling calls
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
     ).toBeInTheDocument();
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
     ).toBeInTheDocument();
   });
 });

+ 2 - 2
static/app/gettingStartedDocs/node/azurefunctions.spec.tsx

@@ -101,10 +101,10 @@ describe('express onboarding docs', function () {
 
     // Should have start and stop profiling calls
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
     ).toBeInTheDocument();
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
     ).toBeInTheDocument();
   });
 });

+ 2 - 2
static/app/gettingStartedDocs/node/connect.spec.tsx

@@ -109,10 +109,10 @@ describe('connect onboarding docs', function () {
 
     // Should have start and stop profiling calls
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
     ).toBeInTheDocument();
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
     ).toBeInTheDocument();
   });
 });

+ 2 - 2
static/app/gettingStartedDocs/node/express.spec.tsx

@@ -109,10 +109,10 @@ describe('express onboarding docs', function () {
 
     // Should have start and stop profiling calls
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
     ).toBeInTheDocument();
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
     ).toBeInTheDocument();
   });
 });

+ 2 - 2
static/app/gettingStartedDocs/node/fastify.spec.tsx

@@ -110,10 +110,10 @@ describe('fastify onboarding docs', function () {
 
     // Should have start and stop profiling calls
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
     ).toBeInTheDocument();
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
     ).toBeInTheDocument();
   });
 });

+ 2 - 2
static/app/gettingStartedDocs/node/gcpfunctions.spec.tsx

@@ -104,10 +104,10 @@ describe('gcpfunctions onboarding docs', function () {
 
     // Should have start and stop profiling calls
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
     ).toBeInTheDocument();
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
     ).toBeInTheDocument();
   });
 });

+ 2 - 2
static/app/gettingStartedDocs/node/hapi.spec.tsx

@@ -110,10 +110,10 @@ describe('hapi onboarding docs', function () {
 
     // Should have start and stop profiling calls
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
     ).toBeInTheDocument();
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
     ).toBeInTheDocument();
   });
 });

+ 2 - 2
static/app/gettingStartedDocs/node/koa.spec.tsx

@@ -110,10 +110,10 @@ describe('koa onboarding docs', function () {
 
     // Should have start and stop profiling calls
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
     ).toBeInTheDocument();
     expect(
-      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiling/))
+      screen.queryByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
     ).toBeInTheDocument();
   });
 });

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