Skip to content

Commit 1808055

Browse files
authored
1 parent e3741db commit 1808055

File tree

11 files changed

+50
-45
lines changed

11 files changed

+50
-45
lines changed

static/app/gettingStartedDocs/node/awslambda.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('awslambda onboarding docs', function () {
4040
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4141
).toBeInTheDocument();
4242
expect(
43-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
43+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
4444
).toBeInTheDocument();
4545
});
4646

@@ -70,7 +70,7 @@ describe('awslambda onboarding docs', function () {
7070
)
7171
).toBeInTheDocument();
7272
expect(
73-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
73+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
7474
).toBeInTheDocument();
7575
});
7676

@@ -97,7 +97,7 @@ describe('awslambda onboarding docs', function () {
9797

9898
// Profiles sample rate should not be set for continuous profiling
9999
expect(
100-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
100+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
101101
).not.toBeInTheDocument();
102102

103103
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/azurefunctions.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ describe('express onboarding docs', function () {
3838
expect(
3939
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4040
).toBeInTheDocument();
41-
expect(
42-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
43-
).toBeInTheDocument();
4441
});
4542

4643
it('enables performance setting the tracesSampleRate to 1', () => {
@@ -69,7 +66,10 @@ describe('express onboarding docs', function () {
6966
)
7067
).toBeInTheDocument();
7168
expect(
72-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
69+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
70+
).toBeInTheDocument();
71+
expect(
72+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
7373
).toBeInTheDocument();
7474
});
7575

@@ -96,7 +96,7 @@ describe('express onboarding docs', function () {
9696

9797
// Profiles sample rate should not be set for continuous profiling
9898
expect(
99-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
99+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
100100
).not.toBeInTheDocument();
101101

102102
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/connect.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('connect onboarding docs', function () {
4747
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4848
).toBeInTheDocument();
4949
expect(
50-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
50+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
5151
).toBeInTheDocument();
5252
});
5353

@@ -77,7 +77,7 @@ describe('connect onboarding docs', function () {
7777
)
7878
).toBeInTheDocument();
7979
expect(
80-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
80+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
8181
).toBeInTheDocument();
8282
});
8383

@@ -104,7 +104,7 @@ describe('connect onboarding docs', function () {
104104

105105
// Profiles sample rate should not be set for continuous profiling
106106
expect(
107-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
107+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
108108
).not.toBeInTheDocument();
109109

110110
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/express.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ describe('express onboarding docs', function () {
4747
expect(
4848
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4949
).toBeInTheDocument();
50-
expect(
51-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
52-
).toBeInTheDocument();
5350
});
5451

5552
it('enables performance setting the tracesSampleRate to 1', () => {
@@ -63,6 +60,9 @@ describe('express onboarding docs', function () {
6360
expect(
6461
screen.getByText(textWithMarkupMatcher(/tracesSampleRate: 1\.0/))
6562
).toBeInTheDocument();
63+
expect(
64+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
65+
).toBeInTheDocument();
6666
});
6767

6868
it('enables profiling by setting profiling samplerates', () => {
@@ -78,7 +78,7 @@ describe('express onboarding docs', function () {
7878
)
7979
).toBeInTheDocument();
8080
expect(
81-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
81+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
8282
).toBeInTheDocument();
8383
});
8484
it('continuous profiling', () => {
@@ -104,7 +104,7 @@ describe('express onboarding docs', function () {
104104

105105
// Profiles sample rate should not be set for continuous profiling
106106
expect(
107-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
107+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
108108
).not.toBeInTheDocument();
109109

110110
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/fastify.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ describe('fastify onboarding docs', function () {
4747
expect(
4848
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4949
).toBeInTheDocument();
50-
expect(
51-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
52-
).toBeInTheDocument();
5350
});
5451

5552
it('enables performance setting the tracesSampleRate to 1', () => {
@@ -63,6 +60,9 @@ describe('fastify onboarding docs', function () {
6360
expect(
6461
screen.getByText(textWithMarkupMatcher(/tracesSampleRate: 1\.0/))
6562
).toBeInTheDocument();
63+
expect(
64+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
65+
).toBeInTheDocument();
6666
});
6767

6868
it('enables profiling by setting profiling samplerates', () => {
@@ -78,7 +78,7 @@ describe('fastify onboarding docs', function () {
7878
)
7979
).toBeInTheDocument();
8080
expect(
81-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
81+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
8282
).toBeInTheDocument();
8383
});
8484

@@ -105,7 +105,7 @@ describe('fastify onboarding docs', function () {
105105

106106
// Profiles sample rate should not be set for continuous profiling
107107
expect(
108-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
108+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
109109
).not.toBeInTheDocument();
110110

111111
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/gcpfunctions.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ describe('gcpfunctions onboarding docs', function () {
4141
expect(
4242
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4343
).toBeInTheDocument();
44-
expect(
45-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
46-
).toBeInTheDocument();
4744
});
4845

4946
it('enables performance setting the tracesSampleRate to 1', () => {
@@ -57,6 +54,9 @@ describe('gcpfunctions onboarding docs', function () {
5754
expect(
5855
screen.getByText(textWithMarkupMatcher(/tracesSampleRate: 1\.0/))
5956
).toBeInTheDocument();
57+
expect(
58+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
59+
).toBeInTheDocument();
6060
});
6161

6262
it('enables profiling by setting profiling samplerates', () => {
@@ -72,7 +72,7 @@ describe('gcpfunctions onboarding docs', function () {
7272
)
7373
).toBeInTheDocument();
7474
expect(
75-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
75+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
7676
).toBeInTheDocument();
7777
});
7878

@@ -99,7 +99,7 @@ describe('gcpfunctions onboarding docs', function () {
9999

100100
// Profiles sample rate should not be set for continuous profiling
101101
expect(
102-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
102+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
103103
).not.toBeInTheDocument();
104104

105105
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/hapi.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ describe('hapi onboarding docs', function () {
4747
expect(
4848
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4949
).toBeInTheDocument();
50-
expect(
51-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
52-
).toBeInTheDocument();
5350
});
5451

5552
it('enables performance setting the tracesSampleRate to 1', () => {
@@ -63,6 +60,9 @@ describe('hapi onboarding docs', function () {
6360
expect(
6461
screen.getByText(textWithMarkupMatcher(/tracesSampleRate: 1\.0/))
6562
).toBeInTheDocument();
63+
expect(
64+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
65+
).toBeInTheDocument();
6666
});
6767

6868
it('enables profiling by setting profiling samplerates', () => {
@@ -78,7 +78,7 @@ describe('hapi onboarding docs', function () {
7878
)
7979
).toBeInTheDocument();
8080
expect(
81-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
81+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
8282
).toBeInTheDocument();
8383
});
8484

@@ -105,7 +105,7 @@ describe('hapi onboarding docs', function () {
105105

106106
// Profiles sample rate should not be set for continuous profiling
107107
expect(
108-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
108+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
109109
).not.toBeInTheDocument();
110110

111111
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/koa.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('koa onboarding docs', function () {
4848
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4949
).toBeInTheDocument();
5050
expect(
51-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
51+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
5252
).toBeInTheDocument();
5353
});
5454

@@ -78,7 +78,7 @@ describe('koa onboarding docs', function () {
7878
)
7979
).toBeInTheDocument();
8080
expect(
81-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
81+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
8282
).toBeInTheDocument();
8383
});
8484

@@ -105,7 +105,7 @@ describe('koa onboarding docs', function () {
105105

106106
// Profiles sample rate should not be set for continuous profiling
107107
expect(
108-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
108+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
109109
).not.toBeInTheDocument();
110110

111111
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/nestjs.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('Nest.js onboarding docs', function () {
4848
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4949
).toBeInTheDocument();
5050
expect(
51-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
51+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
5252
).toBeInTheDocument();
5353
});
5454

@@ -78,7 +78,7 @@ describe('Nest.js onboarding docs', function () {
7878
)
7979
).toBeInTheDocument();
8080
expect(
81-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
81+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
8282
).toBeInTheDocument();
8383
});
8484

@@ -105,7 +105,7 @@ describe('Nest.js onboarding docs', function () {
105105

106106
// Profiles sample rate should not be set for continuous profiling
107107
expect(
108-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
108+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
109109
).not.toBeInTheDocument();
110110

111111
// Should have start and stop profiling calls

static/app/gettingStartedDocs/node/node.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('node onboarding docs', function () {
4040
screen.getByText(textWithMarkupMatcher(/tracesSampleRate/))
4141
).toBeInTheDocument();
4242
expect(
43-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate/))
43+
screen.getByText(textWithMarkupMatcher(/profileSessionSampleRate: 1.0/))
4444
).toBeInTheDocument();
4545
});
4646

@@ -70,7 +70,7 @@ describe('node onboarding docs', function () {
7070
)
7171
).toBeInTheDocument();
7272
expect(
73-
screen.getByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
73+
screen.getByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
7474
).toBeInTheDocument();
7575
});
7676

@@ -97,7 +97,7 @@ describe('node onboarding docs', function () {
9797

9898
// Profiles sample rate should not be set for continuous profiling
9999
expect(
100-
screen.queryByText(textWithMarkupMatcher(/profilesSampleRate: 1\.0/))
100+
screen.queryByText(textWithMarkupMatcher(/profileLifecycle: 'trace'/))
101101
).not.toBeInTheDocument();
102102

103103
// Should have start and stop profiling calls

0 commit comments

Comments
 (0)