Skip to content

Commit f3c0c65

Browse files
committed
Add e2e SentryTracerProvider variants
1 parent f58c909 commit f3c0c65

12 files changed

Lines changed: 93 additions & 1 deletion

File tree

dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,14 @@
4545
},
4646
"volta": {
4747
"extends": "../../package.json"
48+
},
49+
"sentryTest": {
50+
"variants": [
51+
{
52+
"build-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:build",
53+
"assert-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:assert",
54+
"label": "nestjs-basic-with-graphql (sentry-tracer-provider)"
55+
}
56+
]
4857
}
4958
}

dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/src/instrument.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ Sentry.init({
55
dsn: process.env.E2E_TEST_DSN,
66
tunnel: `http://localhost:3031/`, // proxy server
77
tracesSampleRate: 1,
8+
...(process.env.E2E_USE_SENTRY_TRACER_PROVIDER === '1'
9+
? {
10+
_experiments: {
11+
useSentryTracerProvider: true,
12+
},
13+
}
14+
: {}),
815
});

dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,14 @@
4242
},
4343
"volta": {
4444
"extends": "../../package.json"
45+
},
46+
"sentryTest": {
47+
"variants": [
48+
{
49+
"build-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:build",
50+
"assert-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:assert",
51+
"label": "nestjs-distributed-tracing (sentry-tracer-provider)"
52+
}
53+
]
4554
}
4655
}

dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/src/instrument.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ Sentry.init({
55
dsn: process.env.E2E_TEST_DSN,
66
tunnel: `http://localhost:3031/`, // proxy server
77
tracesSampleRate: 1,
8+
...(process.env.E2E_USE_SENTRY_TRACER_PROVIDER === '1'
9+
? {
10+
_experiments: {
11+
useSentryTracerProvider: true,
12+
},
13+
}
14+
: {}),
815
tracePropagationTargets: ['http://localhost:3030', '/external-allowed'],
916
transportOptions: {
1017
// We expect the app to send a lot of events in a short time

dev-packages/e2e-tests/test-applications/nextjs-16/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
{
6363
"build-command": "pnpm test:build-latest",
6464
"label": "nextjs-16 (latest, turbopack)"
65+
},
66+
{
67+
"build-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:build",
68+
"assert-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:assert",
69+
"label": "nextjs-16 (sentry-tracer-provider)"
6570
}
6671
],
6772
"optionalVariants": [

dev-packages/e2e-tests/test-applications/nextjs-16/sentry.server.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ Sentry.init({
77
tunnel: `http://localhost:3031/`, // proxy server
88
tracesSampleRate: 1.0,
99
dataCollection: { userInfo: true },
10+
...(process.env.E2E_USE_SENTRY_TRACER_PROVIDER === '1'
11+
? {
12+
_experiments: {
13+
useSentryTracerProvider: true,
14+
},
15+
}
16+
: {}),
1017
// debug: true,
1118
integrations: [Sentry.vercelAIIntegration(), Sentry.nodeRuntimeMetricsIntegration({ collectionIntervalMs: 1_000 })],
1219
streamGenAiSpans: true,

dev-packages/e2e-tests/test-applications/node-connect/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,14 @@
2424
},
2525
"volta": {
2626
"extends": "../../package.json"
27+
},
28+
"sentryTest": {
29+
"variants": [
30+
{
31+
"build-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:build",
32+
"assert-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:assert",
33+
"label": "node-connect (sentry-tracer-provider)"
34+
}
35+
]
2736
}
2837
}

dev-packages/e2e-tests/test-applications/node-connect/src/app.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Sentry.init({
66
dsn: process.env.E2E_TEST_DSN,
77
integrations: [],
88
tracesSampleRate: 1,
9+
...(process.env.E2E_USE_SENTRY_TRACER_PROVIDER === '1'
10+
? {
11+
_experiments: {
12+
useSentryTracerProvider: true,
13+
},
14+
}
15+
: {}),
916
tunnel: 'http://localhost:3031/', // proxy server
1017
tracePropagationTargets: ['http://localhost:3030', '/external-allowed'],
1118
});

dev-packages/e2e-tests/test-applications/node-express/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,14 @@
3131
},
3232
"volta": {
3333
"extends": "../../package.json"
34+
},
35+
"sentryTest": {
36+
"variants": [
37+
{
38+
"build-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:build",
39+
"assert-command": "env E2E_USE_SENTRY_TRACER_PROVIDER=1 pnpm test:assert",
40+
"label": "node-express (sentry-tracer-provider)"
41+
}
42+
]
3443
}
3544
}

dev-packages/e2e-tests/test-applications/node-express/src/app.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ Sentry.init({
1414
tunnel: `http://localhost:3031/`, // proxy server
1515
tracesSampleRate: 1,
1616
enableLogs: true,
17+
...(process.env.E2E_USE_SENTRY_TRACER_PROVIDER === '1'
18+
? {
19+
_experiments: {
20+
useSentryTracerProvider: true,
21+
},
22+
}
23+
: {}),
1724
integrations: [
1825
Sentry.nativeNodeFetchIntegration({
1926
headersToSpanAttributes: {

0 commit comments

Comments
 (0)