Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/awslambda.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ describe('awslambda onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/azurefunctions.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ describe('express onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/connect.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ describe('connect onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/express.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ describe('express onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/fastify.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ describe('fastify onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/gcpfunctions.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ describe('gcpfunctions onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/hapi.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ describe('hapi onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/koa.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ describe('koa onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/nestjs.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ describe('Nest.js onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/node/node.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ describe('node onboarding docs', function () {

// Should have start and stop profiling calls
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.startProfileSession/))
).toBeInTheDocument();
expect(
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfiler/))
screen.getByText(textWithMarkupMatcher(/Sentry.profiler.stopProfileSession/))
).toBeInTheDocument();
});
});
4 changes: 2 additions & 2 deletions static/app/utils/gettingStartedDocs/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Sentry.init({
? `
// Manually call startProfiler and stopProfiler
// to profile the code in between
Sentry.profiler.startProfiler();
Sentry.profiler.startProfileSession();
${
params.isPerformanceSelected
? `
Expand All @@ -243,7 +243,7 @@ Sentry.startSpan({
}
// Calls to stopProfiling are optional - if you don't stop the profiler, it will keep profiling
// your application until the process exits or stopProfiling is called.
Sentry.profiler.stopProfiler();`
Sentry.profiler.stopProfileSession();`
: ''
}`;

Expand Down
Loading