From 23e427a8f7e428e09524dbde57c4a9d9351cfcae Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Fri, 24 Jul 2026 12:49:22 +0200 Subject: [PATCH 1/2] test(e2e): Disable span streaming in test applications Keep transaction-asserting E2E applications on the static trace lifecycle while span streaming is enabled by default. Refs #22344 Co-Authored-By: Cursor Co-authored-by: Cursor --- .../test-applications/angular-17/src/main.ts | 1 + .../test-applications/angular-18/src/main.ts | 1 + .../test-applications/angular-19/src/main.ts | 1 + .../test-applications/angular-20/src/main.ts | 1 + .../test-applications/angular-21/src/main.ts | 1 + .../test-applications/angular-22/src/main.ts | 1 + .../test-applications/astro-4/sentry.client.config.js | 1 + .../test-applications/astro-4/sentry.server.config.js | 1 + .../astro-5-cf-workers/sentry.client.config.js | 1 + .../astro-5-cf-workers/sentry.server.config.js | 1 + .../test-applications/astro-5/sentry.client.config.js | 1 + .../test-applications/astro-5/sentry.server.config.js | 1 + .../astro-6-cf-workers/sentry.client.config.js | 1 + .../test-applications/astro-6/sentry.client.config.js | 1 + .../test-applications/astro-6/sentry.server.config.js | 1 + .../astro-7-orchestrion/sentry.client.config.js | 1 + .../astro-7-orchestrion/sentry.server.config.js | 1 + .../test-applications/astro-7/sentry.client.config.js | 1 + .../test-applications/astro-7/sentry.server.config.js | 1 + .../browser-mfe-vite/apps/shell/src/main.tsx | 1 + .../browser-webworker-vite/src/main.ts | 1 + .../test-applications/bun-bytecode/src/main.ts | 1 + .../e2e-tests/test-applications/bun-mysql/src/app.ts | 1 + .../test-applications/create-react-app/src/index.tsx | 1 + .../app/entry.client.tsx | 1 + .../create-remix-app-express-vite-dev/instrument.mjs | 1 + .../create-remix-app-express/app/entry.client.tsx | 1 + .../create-remix-app-express/instrument.mjs | 1 + .../create-remix-app-v2-non-vite/app/entry.client.tsx | 1 + .../create-remix-app-v2-non-vite/app/entry.server.tsx | 1 + .../instrument.server.cjs | 1 + .../create-remix-app-v2/app/entry.client.tsx | 1 + .../create-remix-app-v2/instrument.server.cjs | 1 + .../test-applications/debug-id-sourcemaps/src/app.js | 1 + .../tests/__snapshots__/server.test.ts.snap | 4 ++-- .../test-applications/default-browser/src/index.js | 1 + .../e2e-tests/test-applications/deno-mysql/src/app.ts | 1 + .../e2e-tests/test-applications/deno-pg/src/app.ts | 1 + .../e2e-tests/test-applications/deno-redis/src/app.ts | 1 + .../e2e-tests/test-applications/deno/src/app.ts | 1 + .../e2e-tests/test-applications/elysia-bun/src/app.ts | 1 + .../test-applications/elysia-node/src/app.ts | 1 + .../test-applications/ember-classic/app/app.ts | 1 + .../test-applications/ember-embroider/app/app.ts | 1 + .../test-applications/hono-4/src/instrument.node.ts | 1 + .../hydrogen-react-router-7/app/entry.client.tsx | 1 + .../hydrogen-react-router-7/instrument.server.mjs | 1 + .../test-applications/lighthouse-react/src/main.tsx | 11 ++++++++++- .../test-applications/nestjs-11/src/instrument.ts | 1 + .../test-applications/nestjs-8/src/instrument.ts | 1 + .../nestjs-basic-with-graphql/src/instrument.ts | 1 + .../test-applications/nestjs-basic/src/instrument.ts | 1 + .../test-applications/nestjs-bullmq/src/instrument.ts | 1 + .../nestjs-distributed-tracing/src/instrument.ts | 1 + .../nestjs-fastify/src/instrument.ts | 1 + .../nestjs-graphql/src/instrument.ts | 1 + .../nestjs-microservices/src/instrument.ts | 1 + .../nestjs-orchestrion/src/instrument.ts | 1 + .../nestjs-websockets/src/instrument.ts | 1 + .../src/instrument.ts | 1 + .../nestjs-with-submodules/src/instrument.ts | 1 + .../nextjs-14/instrumentation-client.ts | 1 + .../test-applications/nextjs-14/instrumentation.ts | 1 + .../nextjs-15-basepath/instrumentation-client.ts | 1 + .../nextjs-15-basepath/sentry.edge.config.ts | 1 + .../nextjs-15-basepath/sentry.server.config.ts | 1 + .../nextjs-15-intl/instrumentation-client.ts | 1 + .../nextjs-15-intl/sentry.edge.config.ts | 1 + .../nextjs-15-intl/sentry.server.config.ts | 1 + .../nextjs-15-t3/sentry.client.config.ts | 1 + .../nextjs-15-t3/sentry.edge.config.ts | 1 + .../nextjs-15-t3/sentry.server.config.ts | 1 + .../nextjs-15/instrumentation-client.ts | 1 + .../test-applications/nextjs-15/sentry.edge.config.ts | 1 + .../nextjs-15/sentry.server.config.ts | 1 + .../nextjs-16-bun/instrumentation-client.ts | 1 + .../nextjs-16-bun/sentry.edge.config.ts | 1 + .../nextjs-16-bun/sentry.server.config.ts | 1 + .../instrumentation-client.ts | 1 + .../nextjs-16-cacheComponents/sentry.edge.config.ts | 1 + .../nextjs-16-cacheComponents/sentry.server.config.ts | 1 + .../nextjs-16-cf-workers/instrumentation-client.ts | 1 + .../nextjs-16-cf-workers/sentry.edge.config.ts | 1 + .../nextjs-16-cf-workers/sentry.server.config.ts | 1 + .../nextjs-16-orchestrion/sentry.server.config.ts | 1 + .../instrumentation-client.ts | 1 + .../nextjs-16-trailing-slash/sentry.edge.config.ts | 1 + .../nextjs-16-trailing-slash/sentry.server.config.ts | 1 + .../nextjs-16-tunnel/instrumentation-client.ts | 1 + .../nextjs-16-tunnel/sentry.edge.config.ts | 1 + .../nextjs-16-tunnel/sentry.server.config.ts | 1 + .../nextjs-16-userfeedback/instrumentation-client.ts | 1 + .../nextjs-16-userfeedback/sentry.edge.config.ts | 1 + .../nextjs-16-userfeedback/sentry.server.config.ts | 1 + .../nextjs-16/instrumentation-client.ts | 1 + .../test-applications/nextjs-16/sentry.edge.config.ts | 1 + .../nextjs-16/sentry.server.config.ts | 1 + .../nextjs-app-dir/instrumentation-client.ts | 1 + .../nextjs-app-dir/instrumentation.ts | 1 + .../nextjs-orpc/sentry.edge.config.ts | 1 + .../nextjs-orpc/sentry.server.config.ts | 1 + .../nextjs-orpc/src/instrumentation-client.ts | 1 + .../nextjs-pages-dir/instrumentation-client.ts | 1 + .../nextjs-pages-dir/instrumentation.ts | 1 + .../test-applications/nitro-3/instrument.mjs | 1 + .../e2e-tests/test-applications/nitro-3/src/main.ts | 1 + .../node-express-cjs-preload/src/app.js | 1 + .../node-express-esm-loader/src/instrument.mjs | 1 + .../node-express-esm-preload/src/app.mjs | 1 + .../src/instrument.mjs | 1 + .../node-express-incorrect-instrumentation/src/app.ts | 1 + .../node-express-mcp-v2/instrument.mjs | 1 + .../node-express-orchestrion-cjs/src/app.js | 1 + .../node-express-orchestrion/src/instrument.mjs | 1 + .../node-express-send-to-sentry/src/app.ts | 1 + .../test-applications/node-express-v5/src/app.ts | 1 + .../test-applications/node-express/src/app.ts | 1 + .../node-fastify-3/src/app-handle-error-override.ts | 1 + .../test-applications/node-fastify-3/src/app.ts | 1 + .../node-fastify-4/src/app-handle-error-override.ts | 1 + .../test-applications/node-fastify-4/src/app.ts | 1 + .../node-fastify-5/src/app-handle-error-override.ts | 1 + .../test-applications/node-fastify-5/src/app.ts | 1 + .../node-firebase/firestore-app/src/init.ts | 1 + .../node-firebase/functions/src/init.ts | 1 + .../e2e-tests/test-applications/node-hapi/src/app.js | 1 + .../e2e-tests/test-applications/node-koa/index.js | 1 + .../node-orchestrion-webpack/src/no-orchestrion.mjs | 1 + .../node-orchestrion-webpack/src/with-orchestrion.mjs | 1 + .../node-otel-custom-sampler/src/instrument.ts | 1 + .../node-otel-sdk-node/src/instrument.ts | 1 + .../node-otel-without-tracing/src/instrument.ts | 1 + .../test-applications/node-otel/src/instrument.ts | 1 + .../test-applications/node-profiling-cjs/index.ts | 1 + .../node-profiling-electron/index.electron.js | 1 + .../test-applications/node-profiling-esm/index.ts | 1 + .../nuxt-3-dynamic-import/sentry.client.config.ts | 1 + .../nuxt-3-dynamic-import/sentry.server.config.ts | 1 + .../nuxt-3-min/sentry.client.config.ts | 1 + .../nuxt-3-min/sentry.server.config.ts | 1 + .../nuxt-3-top-level-import/sentry.client.config.ts | 1 + .../nuxt-3-top-level-import/sentry.server.config.ts | 1 + .../test-applications/nuxt-3/sentry.client.config.ts | 1 + .../test-applications/nuxt-3/sentry.server.config.ts | 1 + .../nuxt-4-orchestrion/sentry.client.config.ts | 1 + .../nuxt-4-orchestrion/sentry.server.config.ts | 1 + .../test-applications/nuxt-4/sentry.client.config.ts | 1 + .../test-applications/nuxt-4/sentry.server.config.ts | 1 + .../test-applications/nuxt-5/sentry.client.config.ts | 1 + .../test-applications/nuxt-5/sentry.server.config.ts | 1 + .../test-applications/react-17/src/index.tsx | 1 + .../test-applications/react-19/src/index.tsx | 1 + .../react-create-browser-router/src/index.tsx | 1 + .../react-create-hash-router/src/index.tsx | 1 + .../react-create-memory-router/src/index.tsx | 1 + .../test-applications/react-router-5/src/index.tsx | 1 + .../react-router-6-descendant-routes/src/index.tsx | 1 + .../react-router-6-use-routes/src/index.tsx | 1 + .../test-applications/react-router-6/src/index.tsx | 1 + .../react-router-7-cross-usage/src/index.tsx | 1 + .../app/entry.client.tsx | 1 + .../instrument.mjs | 1 + .../react-router-7-framework-spa/app/entry.client.tsx | 1 + .../react-router-7-framework/app/entry.client.tsx | 1 + .../react-router-7-framework/instrument.mjs | 1 + .../react-router-7-lazy-routes/src/index.tsx | 1 + .../test-applications/react-router-7-spa/src/main.tsx | 1 + .../react-router-8-cross-usage/src/index.tsx | 1 + .../react-router-8-framework/app/entry.client.tsx | 1 + .../react-router-8-framework/instrument.mjs | 1 + .../react-router-8-orchestrion/app/entry.client.tsx | 1 + .../react-router-8-orchestrion/instrument.mjs | 1 + .../test-applications/react-router-8-spa/src/main.tsx | 1 + .../react-send-to-sentry/src/index.tsx | 1 + .../remix-hydrogen/app/entry.client.tsx | 1 + .../remix-server-timing/app/entry.client.tsx | 1 + .../remix-server-timing/instrument.server.cjs | 1 + .../solid-tanstack-router/src/main.tsx | 1 + .../e2e-tests/test-applications/solid/src/index.tsx | 1 + .../solidstart-dynamic-import/src/entry-client.tsx | 1 + .../src/instrument.server.ts | 1 + .../solidstart-spa/src/entry-client.tsx | 1 + .../solidstart-spa/src/instrument.server.ts | 1 + .../solidstart-top-level-import/src/entry-client.tsx | 1 + .../src/instrument.server.ts | 1 + .../test-applications/solidstart/src/entry-client.tsx | 1 + .../solidstart/src/instrument.server.ts | 1 + .../supabase-nextjs/sentry.client.config.ts | 1 + .../supabase-nextjs/sentry.edge.config.ts | 1 + .../supabase-nextjs/sentry.server.config.ts | 1 + .../e2e-tests/test-applications/svelte-5/src/main.ts | 1 + .../sveltekit-2-kit-tracing/src/hooks.client.ts | 1 + .../src/instrumentation.server.ts | 1 + .../sveltekit-2-orchestrion/src/hooks.client.ts | 1 + .../sveltekit-2-orchestrion/src/hooks.server.ts | 1 + .../sveltekit-2-svelte-5/src/hooks.client.ts | 1 + .../sveltekit-2-svelte-5/src/hooks.server.ts | 1 + .../sveltekit-2.5.0-twp/src/hooks.client.ts | 1 + .../sveltekit-2.5.0-twp/src/hooks.server.ts | 1 + .../test-applications/sveltekit-2/src/hooks.client.ts | 1 + .../test-applications/sveltekit-2/src/hooks.server.ts | 1 + .../test-applications/sveltekit-3/src/hooks.client.ts | 1 + .../sveltekit-3/src/instrumentation.server.ts | 1 + .../sveltekit-cloudflare-pages/src/hooks.client.ts | 1 + .../test-applications/tanstack-router/src/main.tsx | 1 + .../src/instrument.client.ts | 1 + .../instrument.server.mjs | 1 + .../src/instrument.client.ts | 1 + .../tanstackstart-react/src/instrument.client.ts | 1 + .../test-applications/tsx-express/instrument.mjs | 1 + .../e2e-tests/test-applications/vue-3/src/main.ts | 1 + .../test-applications/vue-tanstack-router/src/main.ts | 1 + .../e2e-tests/test-applications/webpack-4/entry.js | 1 + .../e2e-tests/test-applications/webpack-5/entry.js | 1 + 214 files changed, 224 insertions(+), 3 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/angular-17/src/main.ts b/dev-packages/e2e-tests/test-applications/angular-17/src/main.ts index a0b841afc333..d41666c20925 100644 --- a/dev-packages/e2e-tests/test-applications/angular-17/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/angular-17/src/main.ts @@ -5,6 +5,7 @@ import { appConfig } from './app/app.config'; import * as Sentry from '@sentry/angular'; Sentry.init({ + traceLifecycle: 'static', // Cannot use process.env here, so we hardcode the DSN dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/angular-18/src/main.ts b/dev-packages/e2e-tests/test-applications/angular-18/src/main.ts index a0b841afc333..d41666c20925 100644 --- a/dev-packages/e2e-tests/test-applications/angular-18/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/angular-18/src/main.ts @@ -5,6 +5,7 @@ import { appConfig } from './app/app.config'; import * as Sentry from '@sentry/angular'; Sentry.init({ + traceLifecycle: 'static', // Cannot use process.env here, so we hardcode the DSN dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/angular-19/src/main.ts b/dev-packages/e2e-tests/test-applications/angular-19/src/main.ts index a0b841afc333..d41666c20925 100644 --- a/dev-packages/e2e-tests/test-applications/angular-19/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/angular-19/src/main.ts @@ -5,6 +5,7 @@ import { appConfig } from './app/app.config'; import * as Sentry from '@sentry/angular'; Sentry.init({ + traceLifecycle: 'static', // Cannot use process.env here, so we hardcode the DSN dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/angular-20/src/main.ts b/dev-packages/e2e-tests/test-applications/angular-20/src/main.ts index a0b841afc333..d41666c20925 100644 --- a/dev-packages/e2e-tests/test-applications/angular-20/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/angular-20/src/main.ts @@ -5,6 +5,7 @@ import { appConfig } from './app/app.config'; import * as Sentry from '@sentry/angular'; Sentry.init({ + traceLifecycle: 'static', // Cannot use process.env here, so we hardcode the DSN dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/angular-21/src/main.ts b/dev-packages/e2e-tests/test-applications/angular-21/src/main.ts index a0b841afc333..d41666c20925 100644 --- a/dev-packages/e2e-tests/test-applications/angular-21/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/angular-21/src/main.ts @@ -5,6 +5,7 @@ import { appConfig } from './app/app.config'; import * as Sentry from '@sentry/angular'; Sentry.init({ + traceLifecycle: 'static', // Cannot use process.env here, so we hardcode the DSN dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/angular-22/src/main.ts b/dev-packages/e2e-tests/test-applications/angular-22/src/main.ts index a0b841afc333..d41666c20925 100644 --- a/dev-packages/e2e-tests/test-applications/angular-22/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/angular-22/src/main.ts @@ -5,6 +5,7 @@ import { appConfig } from './app/app.config'; import * as Sentry from '@sentry/angular'; Sentry.init({ + traceLifecycle: 'static', // Cannot use process.env here, so we hardcode the DSN dsn: 'https://3b6c388182fb435097f41d181be2b2ba@o4504321058471936.ingest.sentry.io/4504321066008576', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-4/sentry.client.config.js b/dev-packages/e2e-tests/test-applications/astro-4/sentry.client.config.js index 2b79ec0ed337..e4cdc576c585 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/sentry.client.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-4/sentry.client.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-4/sentry.server.config.js b/dev-packages/e2e-tests/test-applications/astro-4/sentry.server.config.js index 0662d678dc7c..ad87b3a65482 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/sentry.server.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-4/sentry.server.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-5-cf-workers/sentry.client.config.js b/dev-packages/e2e-tests/test-applications/astro-5-cf-workers/sentry.client.config.js index 2b79ec0ed337..e4cdc576c585 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5-cf-workers/sentry.client.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-5-cf-workers/sentry.client.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-5-cf-workers/sentry.server.config.js b/dev-packages/e2e-tests/test-applications/astro-5-cf-workers/sentry.server.config.js index 2b79ec0ed337..e4cdc576c585 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5-cf-workers/sentry.server.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-5-cf-workers/sentry.server.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js b/dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js index 865bb18ce84c..be22b53a841b 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-5/sentry.client.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-5/sentry.server.config.js b/dev-packages/e2e-tests/test-applications/astro-5/sentry.server.config.js index 2b79ec0ed337..e4cdc576c585 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/sentry.server.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-5/sentry.server.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-6-cf-workers/sentry.client.config.js b/dev-packages/e2e-tests/test-applications/astro-6-cf-workers/sentry.client.config.js index 83573d36d0be..8081a4b09547 100644 --- a/dev-packages/e2e-tests/test-applications/astro-6-cf-workers/sentry.client.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-6-cf-workers/sentry.client.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-6/sentry.client.config.js b/dev-packages/e2e-tests/test-applications/astro-6/sentry.client.config.js index 83573d36d0be..8081a4b09547 100644 --- a/dev-packages/e2e-tests/test-applications/astro-6/sentry.client.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-6/sentry.client.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-6/sentry.server.config.js b/dev-packages/e2e-tests/test-applications/astro-6/sentry.server.config.js index bc90470cef38..88807ce8da6c 100644 --- a/dev-packages/e2e-tests/test-applications/astro-6/sentry.server.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-6/sentry.server.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-7-orchestrion/sentry.client.config.js b/dev-packages/e2e-tests/test-applications/astro-7-orchestrion/sentry.client.config.js index bc90470cef38..88807ce8da6c 100644 --- a/dev-packages/e2e-tests/test-applications/astro-7-orchestrion/sentry.client.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-7-orchestrion/sentry.client.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-7-orchestrion/sentry.server.config.js b/dev-packages/e2e-tests/test-applications/astro-7-orchestrion/sentry.server.config.js index 7731c42d3f01..848b74087308 100644 --- a/dev-packages/e2e-tests/test-applications/astro-7-orchestrion/sentry.server.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-7-orchestrion/sentry.server.config.js @@ -7,6 +7,7 @@ import { experimentalUseDiagnosticsChannelInjection } from '@sentry/node'; experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-7/sentry.client.config.js b/dev-packages/e2e-tests/test-applications/astro-7/sentry.client.config.js index 83573d36d0be..8081a4b09547 100644 --- a/dev-packages/e2e-tests/test-applications/astro-7/sentry.client.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-7/sentry.client.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/astro-7/sentry.server.config.js b/dev-packages/e2e-tests/test-applications/astro-7/sentry.server.config.js index bc90470cef38..88807ce8da6c 100644 --- a/dev-packages/e2e-tests/test-applications/astro-7/sentry.server.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-7/sentry.server.config.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/browser-mfe-vite/apps/shell/src/main.tsx b/dev-packages/e2e-tests/test-applications/browser-mfe-vite/apps/shell/src/main.tsx index cf33087c4f04..25ed9ca863be 100644 --- a/dev-packages/e2e-tests/test-applications/browser-mfe-vite/apps/shell/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/browser-mfe-vite/apps/shell/src/main.tsx @@ -3,6 +3,7 @@ import ReactDOM from 'react-dom/client'; import * as Sentry from '@sentry/react'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: import.meta.env.MODE || 'development', integrations: [Sentry.browserTracingIntegration()], diff --git a/dev-packages/e2e-tests/test-applications/browser-webworker-vite/src/main.ts b/dev-packages/e2e-tests/test-applications/browser-webworker-vite/src/main.ts index 238ec062663a..08a7a340e799 100644 --- a/dev-packages/e2e-tests/test-applications/browser-webworker-vite/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/browser-webworker-vite/src/main.ts @@ -3,6 +3,7 @@ import MyWorker2 from './worker2.ts?worker'; import * as Sentry from '@sentry/browser'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, environment: import.meta.env.MODE || 'development', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/bun-bytecode/src/main.ts b/dev-packages/e2e-tests/test-applications/bun-bytecode/src/main.ts index bc5783127d58..9aa826d68749 100644 --- a/dev-packages/e2e-tests/test-applications/bun-bytecode/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/bun-bytecode/src/main.ts @@ -4,6 +4,7 @@ import * as Sentry from '@sentry/bun'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://username@domain/123', tracesSampleRate: 0, }); diff --git a/dev-packages/e2e-tests/test-applications/bun-mysql/src/app.ts b/dev-packages/e2e-tests/test-applications/bun-mysql/src/app.ts index 1deaf29d8fc7..a12f2f6c77ba 100644 --- a/dev-packages/e2e-tests/test-applications/bun-mysql/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/bun-mysql/src/app.ts @@ -4,6 +4,7 @@ import * as Sentry from '@sentry/bun'; import mysql from 'mysql'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: process.env.E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/create-react-app/src/index.tsx b/dev-packages/e2e-tests/test-applications/create-react-app/src/index.tsx index 3dcb4c4fd07f..51770b97da5a 100644 --- a/dev-packages/e2e-tests/test-applications/create-react-app/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/create-react-app/src/index.tsx @@ -5,6 +5,7 @@ import App from './App'; import './index.css'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: 'https://public@dsn.ingest.sentry.io/1337', integrations: [Sentry.browserTracingIntegration()], diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/entry.client.tsx index d77a64882a30..1dfd96fe5da3 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/entry.client.tsx @@ -14,6 +14,7 @@ declare global { } Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: window.ENV.SENTRY_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/instrument.mjs b/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/instrument.mjs index b52053445456..e51f229bce5b 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/instrument.mjs @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/remix'; import * as process from 'process'; Sentry.init({ + traceLifecycle: 'static', tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production! environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-express/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/create-remix-app-express/app/entry.client.tsx index 5207852d10de..a033ae9b5b78 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-express/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-express/app/entry.client.tsx @@ -14,6 +14,7 @@ declare global { } Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: window.ENV.SENTRY_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-express/instrument.mjs b/dev-packages/e2e-tests/test-applications/create-remix-app-express/instrument.mjs index a23e60d854bd..478e8561e29d 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-express/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-express/instrument.mjs @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/remix'; import process from 'process'; Sentry.init({ + traceLifecycle: 'static', tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production! environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/app/entry.client.tsx index f540f3c35c1d..ca79286c53d5 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/app/entry.client.tsx @@ -20,6 +20,7 @@ import { StrictMode, startTransition, useEffect } from 'react'; import { hydrateRoot } from 'react-dom/client'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: window.ENV.SENTRY_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/app/entry.server.tsx b/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/app/entry.server.tsx index 41974897eeae..a46ae96b458d 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/app/entry.server.tsx +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/app/entry.server.tsx @@ -19,6 +19,7 @@ installGlobals(); const ABORT_DELAY = 5_000; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: 'http://localhost:3031/', // proxy server diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/instrument.server.cjs b/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/instrument.server.cjs index 557ab8d18f17..46e08e39192b 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/instrument.server.cjs +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-v2-non-vite/instrument.server.cjs @@ -1,6 +1,7 @@ const Sentry = require('@sentry/remix'); Sentry.init({ + traceLifecycle: 'static', tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production! environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-v2/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/create-remix-app-v2/app/entry.client.tsx index c6c86ac7f1f4..49ae52f933e9 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-v2/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-v2/app/entry.client.tsx @@ -20,6 +20,7 @@ import { StrictMode, startTransition, useEffect } from 'react'; import { hydrateRoot } from 'react-dom/client'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: window.ENV.SENTRY_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-v2/instrument.server.cjs b/dev-packages/e2e-tests/test-applications/create-remix-app-v2/instrument.server.cjs index f0e22b321751..a19ab0c5139b 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-v2/instrument.server.cjs +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-v2/instrument.server.cjs @@ -11,6 +11,7 @@ if (injectOrchestrion) { } Sentry.init({ + traceLifecycle: 'static', tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production! environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, diff --git a/dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/src/app.js b/dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/src/app.js index 68a4aae16d85..a854b48b09ae 100644 --- a/dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/src/app.js +++ b/dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/src/app.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/node'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, }); diff --git a/dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/tests/__snapshots__/server.test.ts.snap b/dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/tests/__snapshots__/server.test.ts.snap index 8b157beba9da..3a1eb351ecc4 100644 --- a/dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/tests/__snapshots__/server.test.ts.snap +++ b/dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/tests/__snapshots__/server.test.ts.snap @@ -4,13 +4,13 @@ exports[`Find symbolicated event on sentry 1`] = ` { "colno": 41, "contextLine": "const eventId = Sentry.captureException(new Error('Sentry Debug ID E2E Test Error'));", - "lineno": 8, + "lineno": 9, "postContext": [ "", "process.stdout.write(eventId);", ], "preContext": [ - "Sentry.init({", + " traceLifecycle: 'static',", " environment: 'qa', // dynamic sampling bias to keep transactions", " dsn: process.env.E2E_TEST_DSN,", "});", diff --git a/dev-packages/e2e-tests/test-applications/default-browser/src/index.js b/dev-packages/e2e-tests/test-applications/default-browser/src/index.js index d3eea216fe84..11c91d0994f8 100644 --- a/dev-packages/e2e-tests/test-applications/default-browser/src/index.js +++ b/dev-packages/e2e-tests/test-applications/default-browser/src/index.js @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/browser'; Sentry.init({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, integrations: [Sentry.browserTracingIntegration()], tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/deno-mysql/src/app.ts b/dev-packages/e2e-tests/test-applications/deno-mysql/src/app.ts index 585c0788b9a0..8799c7eb1062 100644 --- a/dev-packages/e2e-tests/test-applications/deno-mysql/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/deno-mysql/src/app.ts @@ -6,6 +6,7 @@ import '@sentry/deno/import'; import * as Sentry from '@sentry/deno'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: Deno.env.get('E2E_TEST_DSN'), debug: !!Deno.env.get('DEBUG'), diff --git a/dev-packages/e2e-tests/test-applications/deno-pg/src/app.ts b/dev-packages/e2e-tests/test-applications/deno-pg/src/app.ts index 2b9e7a432376..a22b4ec33e4b 100644 --- a/dev-packages/e2e-tests/test-applications/deno-pg/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/deno-pg/src/app.ts @@ -7,6 +7,7 @@ import '@sentry/deno/import'; import * as Sentry from '@sentry/deno'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: Deno.env.get('E2E_TEST_DSN'), debug: !!Deno.env.get('DEBUG'), diff --git a/dev-packages/e2e-tests/test-applications/deno-redis/src/app.ts b/dev-packages/e2e-tests/test-applications/deno-redis/src/app.ts index 3e443a4ccc01..31e27c1ce7bb 100644 --- a/dev-packages/e2e-tests/test-applications/deno-redis/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/deno-redis/src/app.ts @@ -3,6 +3,7 @@ import IORedis from 'ioredis'; import { createClient } from 'redis'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: Deno.env.get('E2E_TEST_DSN'), debug: !!Deno.env.get('DEBUG'), diff --git a/dev-packages/e2e-tests/test-applications/deno/src/app.ts b/dev-packages/e2e-tests/test-applications/deno/src/app.ts index 8dbd8870a3b6..89d242b03e2c 100644 --- a/dev-packages/e2e-tests/test-applications/deno/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/deno/src/app.ts @@ -18,6 +18,7 @@ import { MockLanguageModelV1 } from 'ai/test'; import { z } from 'zod'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: Deno.env.get('E2E_TEST_DSN'), debug: !!Deno.env.get('DEBUG'), diff --git a/dev-packages/e2e-tests/test-applications/elysia-bun/src/app.ts b/dev-packages/e2e-tests/test-applications/elysia-bun/src/app.ts index db6a5fff8bd1..19675299b24b 100644 --- a/dev-packages/e2e-tests/test-applications/elysia-bun/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/elysia-bun/src/app.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/elysia'; import { Elysia } from 'elysia'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/elysia-node/src/app.ts b/dev-packages/e2e-tests/test-applications/elysia-node/src/app.ts index 375ca9a29c6d..70caa0413157 100644 --- a/dev-packages/e2e-tests/test-applications/elysia-node/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/elysia-node/src/app.ts @@ -3,6 +3,7 @@ import { Elysia } from 'elysia'; import { node } from '@elysiajs/node'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/ember-classic/app/app.ts b/dev-packages/e2e-tests/test-applications/ember-classic/app/app.ts index a37eadb8fff6..f8297f270fa9 100644 --- a/dev-packages/e2e-tests/test-applications/ember-classic/app/app.ts +++ b/dev-packages/e2e-tests/test-applications/ember-classic/app/app.ts @@ -6,6 +6,7 @@ import Resolver from 'ember-resolver'; import config from './config/environment'; Sentry.init({ + traceLifecycle: 'static', replaysSessionSampleRate: 1, replaysOnErrorSampleRate: 1, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/ember-embroider/app/app.ts b/dev-packages/e2e-tests/test-applications/ember-embroider/app/app.ts index 7241d14be133..487493a1dc9c 100644 --- a/dev-packages/e2e-tests/test-applications/ember-embroider/app/app.ts +++ b/dev-packages/e2e-tests/test-applications/ember-embroider/app/app.ts @@ -5,6 +5,7 @@ import loadInitializers from 'ember-load-initializers'; import Resolver from 'ember-resolver'; Sentry.init({ + traceLifecycle: 'static', replaysSessionSampleRate: 1, replaysOnErrorSampleRate: 1, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/hono-4/src/instrument.node.ts b/dev-packages/e2e-tests/test-applications/hono-4/src/instrument.node.ts index 2e33e6493361..68d813d565da 100644 --- a/dev-packages/e2e-tests/test-applications/hono-4/src/instrument.node.ts +++ b/dev-packages/e2e-tests/test-applications/hono-4/src/instrument.node.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/hono/node'; Sentry.init({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.client.tsx index bd606bbe7c08..99607247c7be 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.client.tsx @@ -4,6 +4,7 @@ import { StrictMode, startTransition } from 'react'; import { hydrateRoot } from 'react-dom/client'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions // Could not find a working way to set the DSN in the browser side from the environment variables dsn: 'https://public@dsn.ingest.sentry.io/1337', diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs index 873fc010f84b..d32446c964f8 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs @@ -1,5 +1,6 @@ import * as Sentry from '@sentry/react-router'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0', // Adds request headers and IP for users, for more info visit: // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#dataCollection diff --git a/dev-packages/e2e-tests/test-applications/lighthouse-react/src/main.tsx b/dev-packages/e2e-tests/test-applications/lighthouse-react/src/main.tsx index 352c53c7208b..3c3d5e729156 100644 --- a/dev-packages/e2e-tests/test-applications/lighthouse-react/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/lighthouse-react/src/main.tsx @@ -16,6 +16,7 @@ performance.mark('sentry-sdk-init-start', { if (import.meta.env.MODE === 'tracing-replay') { Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -27,6 +28,7 @@ if (import.meta.env.MODE === 'tracing-replay') { } else if (import.meta.env.MODE === 'tracing') { // Tracing + errors, but no replay — isolates the replay integration's cost. Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -38,6 +40,7 @@ if (import.meta.env.MODE === 'tracing-replay') { // (We don't recommend this setup anywhere and neither will it work well. // this is purely for testing if it changes anything about overhead.) Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -50,6 +53,7 @@ if (import.meta.env.MODE === 'tracing-replay') { } else if (import.meta.env.MODE === 'errors-only') { // Default integrations only — errors are always captured, no tracing or replay. Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -57,6 +61,7 @@ if (import.meta.env.MODE === 'tracing-replay') { } else if (import.meta.env.MODE === 'minimal-integrations') { // Minimal integratoins setup only (everything necessary to automatically get errors) Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -74,6 +79,7 @@ if (import.meta.env.MODE === 'tracing-replay') { // DSN set but every integration disabled. Isolates the cost of the enabled // client itself from the default instrumentation that wraps DOM/timer/network APIs. Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -85,6 +91,7 @@ if (import.meta.env.MODE === 'tracing-replay') { // removeEventListener on ~32 prototypes plus setTimeout/setInterval/rAF/XHR. // Isolates that global monkey-patching cost from the rest of the defaults. Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -95,6 +102,7 @@ if (import.meta.env.MODE === 'tracing-replay') { // Default integrations minus Breadcrumbs, which adds a lot of monkey patching to // DOM and Network APIs as well as event targets and listeners Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -104,6 +112,7 @@ if (import.meta.env.MODE === 'tracing-replay') { // Default integrations minus Breadcrumbs, which adds a lot of monkey patching to // DOM and Network APIs as well as event targets and listeners Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.VITE_E2E_TEST_DSN as string | undefined, release: 'lighthouse-fixture', environment: 'qa', @@ -113,7 +122,7 @@ if (import.meta.env.MODE === 'tracing-replay') { } else if (import.meta.env.MODE === 'init-only') { // enabled: false makes the SDK a guaranteed no-op (no transport allocation, // no DSN warning). We're measuring pure SDK-loading + tree-shaking cost. - Sentry.init({ enabled: false }); + Sentry.init({ traceLifecycle: 'static', enabled: false }); } performance.measure('sentry-sdk-init-duration', { diff --git a/dev-packages/e2e-tests/test-applications/nestjs-11/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-11/src/instrument.ts index 4f16ebb36d11..aa4c76f13ee5 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-11/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-11/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-8/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-8/src/instrument.ts index 4f16ebb36d11..aa4c76f13ee5 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-8/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-8/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/src/instrument.ts index f1f4de865435..6e84f952e762 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-basic/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-basic/src/instrument.ts index 4f16ebb36d11..aa4c76f13ee5 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-basic/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-basic/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-bullmq/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-bullmq/src/instrument.ts index 4f16ebb36d11..aa4c76f13ee5 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-bullmq/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-bullmq/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/src/instrument.ts index 1cf7b8ee1f76..1160869cded2 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-fastify/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-fastify/src/instrument.ts index 4f16ebb36d11..aa4c76f13ee5 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-fastify/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-fastify/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-graphql/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-graphql/src/instrument.ts index f1f4de865435..6e84f952e762 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-graphql/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-graphql/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-microservices/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-microservices/src/instrument.ts index e0a1cead1153..e7230cd2b44d 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-microservices/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-microservices/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, diff --git a/dev-packages/e2e-tests/test-applications/nestjs-orchestrion/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-orchestrion/src/instrument.ts index 4c784cacce09..fe30ea6d486f 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-orchestrion/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-orchestrion/src/instrument.ts @@ -6,6 +6,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: 'http://localhost:3031/', // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-websockets/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-websockets/src/instrument.ts index e0a1cead1153..e7230cd2b44d 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-websockets/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-websockets/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, diff --git a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/src/instrument.ts index 4f16ebb36d11..aa4c76f13ee5 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/src/instrument.ts b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/src/instrument.ts index 4f16ebb36d11..aa4c76f13ee5 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/src/instrument.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nestjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation-client.ts index 57415e4094e2..483eeab426f7 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation.ts b/dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation.ts index 05811c256c2d..c892d0a37d07 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-14/instrumentation.ts @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/nextjs'; export function register() { if (process.env.NEXT_RUNTIME === 'nodejs' || process.env.NEXT_RUNTIME === 'edge') { Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/instrumentation-client.ts index 57415e4094e2..483eeab426f7 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/sentry.edge.config.ts index 6966e28cacb0..66e1d6d26658 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/sentry.server.config.ts index 6966e28cacb0..66e1d6d26658 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-basepath/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-intl/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-intl/instrumentation-client.ts index a9736730161b..ca5ee251f8e8 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-intl/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-intl/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-intl/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-intl/sentry.edge.config.ts index e60714b755e5..146d35c8e59f 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-intl/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-intl/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: process.env.SENTRY_DSN, tunnel: `http://localhost:3031/`, diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-intl/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-intl/sentry.server.config.ts index e0bc14d47ffd..07272d044d6b 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-intl/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-intl/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.client.config.ts index 6d63ba9325fe..8fcea2ae148a 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.client.config.ts @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server tracesSampleRate: 1, diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.edge.config.ts index 4f1cb3e93e9c..d95683585c16 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.edge.config.ts @@ -6,6 +6,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.server.config.ts index ad780407a5b7..ee00e6481622 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15-t3/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-15/instrumentation-client.ts index 57415e4094e2..483eeab426f7 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.edge.config.ts index 00580e27cd37..6f52d536a9f8 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts index a5e60d7787c6..d626ed7e4228 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-bun/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-bun/instrumentation-client.ts index d197eb42a4bc..26472d2e035e 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-bun/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-bun/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-bun/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-bun/sentry.edge.config.ts index 11e0e9e3c30f..300ac752cba5 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-bun/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-bun/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-bun/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-bun/sentry.server.config.ts index dea152138adc..abf631fb0060 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-bun/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-bun/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/instrumentation-client.ts index 57415e4094e2..483eeab426f7 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/sentry.edge.config.ts index 4e12ee74604b..1840ec65d483 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/sentry.server.config.ts index 737bfa3e9ec7..c2fcb479a47a 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-cacheComponents/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/instrumentation-client.ts index 38a1e1d8f23c..a04c837b6f2c 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/instrumentation-client.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nextjs'; import type { Log } from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/sentry.edge.config.ts index 64734157204f..eb0ae1d8d71b 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/sentry.server.config.ts index 825e14b389f7..1991634bfb86 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-cf-workers/sentry.server.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nextjs'; import { Log } from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-orchestrion/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-orchestrion/sentry.server.config.ts index c19e88472ae5..328cf963bf7d 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-orchestrion/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-orchestrion/sentry.server.config.ts @@ -8,6 +8,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: 'https://public@dsn.ingest.sentry.io/1337', tunnel: 'http://localhost:3031/', // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/instrumentation-client.ts index 57415e4094e2..483eeab426f7 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/sentry.edge.config.ts index 11e0e9e3c30f..300ac752cba5 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/sentry.server.config.ts index 11e0e9e3c30f..300ac752cba5 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-trailing-slash/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/instrumentation-client.ts index 6c55f3f0ebfa..145763e4773a 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions // Use a fake but properly formatted Sentry SaaS DSN for tunnel route testing dsn: 'https://public@o12345.ingest.us.sentry.io/67890', diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/sentry.edge.config.ts index 98d677005900..84dea31ea935 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions // Use a fake but properly formatted Sentry SaaS DSN for tunnel route testing dsn: 'https://public@o12345.ingest.us.sentry.io/67890', diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/sentry.server.config.ts index 98d677005900..84dea31ea935 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions // Use a fake but properly formatted Sentry SaaS DSN for tunnel route testing dsn: 'https://public@o12345.ingest.us.sentry.io/67890', diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/instrumentation-client.ts index 85034ef5a9e1..3a98f85b6239 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/sentry.edge.config.ts index c6de72d3a791..d16a59be453e 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/sentry.server.config.ts index c6de72d3a791..d16a59be453e 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-16/instrumentation-client.ts index dbe94f2f9b3e..053fab6c4666 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16/instrumentation-client.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nextjs'; import type { Log } from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16/sentry.edge.config.ts index 4e12ee74604b..1840ec65d483 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16/sentry.edge.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-16/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-16/sentry.server.config.ts index 8b9eaa651f6d..e956683c039e 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-16/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-16/sentry.server.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nextjs'; import { Log } from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-app-dir/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-app-dir/instrumentation-client.ts index 57415e4094e2..483eeab426f7 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-app-dir/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-app-dir/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-app-dir/instrumentation.ts b/dev-packages/e2e-tests/test-applications/nextjs-app-dir/instrumentation.ts index 2f72cbf2ad75..b90d3be3504a 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-app-dir/instrumentation.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-app-dir/instrumentation.ts @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/nextjs'; export function register() { if (process.env.NEXT_RUNTIME === 'nodejs' || process.env.NEXT_RUNTIME === 'edge') { Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-orpc/sentry.edge.config.ts index 4f1cb3e93e9c..d95683585c16 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/sentry.edge.config.ts @@ -6,6 +6,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-orpc/sentry.server.config.ts index ad780407a5b7..ee00e6481622 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/instrumentation-client.ts index d85e1cb17cbf..2dbed934ff1f 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server tracesSampleRate: 1, diff --git a/dev-packages/e2e-tests/test-applications/nextjs-pages-dir/instrumentation-client.ts b/dev-packages/e2e-tests/test-applications/nextjs-pages-dir/instrumentation-client.ts index 57415e4094e2..483eeab426f7 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-pages-dir/instrumentation-client.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-pages-dir/instrumentation-client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nextjs-pages-dir/instrumentation.ts b/dev-packages/e2e-tests/test-applications/nextjs-pages-dir/instrumentation.ts index 2f72cbf2ad75..b90d3be3504a 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-pages-dir/instrumentation.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-pages-dir/instrumentation.ts @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/nextjs'; export function register() { if (process.env.NEXT_RUNTIME === 'nodejs' || process.env.NEXT_RUNTIME === 'edge') { Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nitro-3/instrument.mjs b/dev-packages/e2e-tests/test-applications/nitro-3/instrument.mjs index 53b80d309a5b..eed3a8f5cd01 100644 --- a/dev-packages/e2e-tests/test-applications/nitro-3/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/nitro-3/instrument.mjs @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nitro'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nitro-3/src/main.ts b/dev-packages/e2e-tests/test-applications/nitro-3/src/main.ts index d27d0ba1763a..c190f5df30bf 100644 --- a/dev-packages/e2e-tests/test-applications/nitro-3/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/nitro-3/src/main.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/browser'; // Let's us test trace propagation Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: 'https://public@dsn.ingest.sentry.io/1337', tunnel: 'http://localhost:3031/', // proxy server diff --git a/dev-packages/e2e-tests/test-applications/node-express-cjs-preload/src/app.js b/dev-packages/e2e-tests/test-applications/node-express-cjs-preload/src/app.js index b41d99ab6440..134c2de6560c 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-cjs-preload/src/app.js +++ b/dev-packages/e2e-tests/test-applications/node-express-cjs-preload/src/app.js @@ -38,6 +38,7 @@ async function run() { await new Promise(resolve => setTimeout(resolve, 1000)); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/node-express-esm-loader/src/instrument.mjs b/dev-packages/e2e-tests/test-applications/node-express-esm-loader/src/instrument.mjs index 544c773e5e7c..2b743a22ecdb 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-esm-loader/src/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/node-express-esm-loader/src/instrument.mjs @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/node'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/node-express-esm-preload/src/app.mjs b/dev-packages/e2e-tests/test-applications/node-express-esm-preload/src/app.mjs index cc680866ab1a..28e595e3f667 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-esm-preload/src/app.mjs +++ b/dev-packages/e2e-tests/test-applications/node-express-esm-preload/src/app.mjs @@ -53,6 +53,7 @@ async function run() { await new Promise(resolve => setTimeout(resolve, 1000)); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/node-express-esm-without-loader/src/instrument.mjs b/dev-packages/e2e-tests/test-applications/node-express-esm-without-loader/src/instrument.mjs index 1636d10e836c..472d07edeb21 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-esm-without-loader/src/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/node-express-esm-without-loader/src/instrument.mjs @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/node'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation/src/app.ts b/dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation/src/app.ts index 2ab5d1ace5a0..166f13822a1b 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/node-express-incorrect-instrumentation/src/app.ts @@ -12,6 +12,7 @@ const port = 3030; // import and init sentry last for missing instrumentation import * as Sentry from '@sentry/node'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, includeLocalVariables: true, diff --git a/dev-packages/e2e-tests/test-applications/node-express-mcp-v2/instrument.mjs b/dev-packages/e2e-tests/test-applications/node-express-mcp-v2/instrument.mjs index f3dd95215d03..1d89289c1b49 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-mcp-v2/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/node-express-mcp-v2/instrument.mjs @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/node'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/node-express-orchestrion-cjs/src/app.js b/dev-packages/e2e-tests/test-applications/node-express-orchestrion-cjs/src/app.js index 867a932b23bd..d2e6684f3149 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-orchestrion-cjs/src/app.js +++ b/dev-packages/e2e-tests/test-applications/node-express-orchestrion-cjs/src/app.js @@ -6,6 +6,7 @@ const Sentry = require('@sentry/node'); Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/node-express-orchestrion/src/instrument.mjs b/dev-packages/e2e-tests/test-applications/node-express-orchestrion/src/instrument.mjs index 2f47402bb02a..00f76eb3da56 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-orchestrion/src/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/node-express-orchestrion/src/instrument.mjs @@ -7,6 +7,7 @@ import * as Sentry from '@sentry/node'; Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/src/app.ts b/dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/src/app.ts index ca5d61f742d9..930ff5b9963a 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/src/app.ts @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/node'; let lastTransactionId: string | undefined; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, includeLocalVariables: true, diff --git a/dev-packages/e2e-tests/test-applications/node-express-v5/src/app.ts b/dev-packages/e2e-tests/test-applications/node-express-v5/src/app.ts index 9a7f6f07d8bc..7b6db485e963 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-v5/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/node-express-v5/src/app.ts @@ -7,6 +7,7 @@ declare global { } Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, includeLocalVariables: true, diff --git a/dev-packages/e2e-tests/test-applications/node-express/src/app.ts b/dev-packages/e2e-tests/test-applications/node-express/src/app.ts index dc755f95d062..fa352284e01d 100644 --- a/dev-packages/e2e-tests/test-applications/node-express/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/node-express/src/app.ts @@ -7,6 +7,7 @@ declare global { } Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, includeLocalVariables: true, diff --git a/dev-packages/e2e-tests/test-applications/node-fastify-3/src/app-handle-error-override.ts b/dev-packages/e2e-tests/test-applications/node-fastify-3/src/app-handle-error-override.ts index 378ef99fa309..7f0890002772 100644 --- a/dev-packages/e2e-tests/test-applications/node-fastify-3/src/app-handle-error-override.ts +++ b/dev-packages/e2e-tests/test-applications/node-fastify-3/src/app-handle-error-override.ts @@ -15,6 +15,7 @@ console.warn = new Proxy(console.warn, { }); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/node-fastify-3/src/app.ts b/dev-packages/e2e-tests/test-applications/node-fastify-3/src/app.ts index 5b4a2f0d16ac..c16ca946da86 100644 --- a/dev-packages/e2e-tests/test-applications/node-fastify-3/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/node-fastify-3/src/app.ts @@ -15,6 +15,7 @@ console.warn = new Proxy(console.warn, { }); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/node-fastify-4/src/app-handle-error-override.ts b/dev-packages/e2e-tests/test-applications/node-fastify-4/src/app-handle-error-override.ts index 72270efc05de..5552e765b98b 100644 --- a/dev-packages/e2e-tests/test-applications/node-fastify-4/src/app-handle-error-override.ts +++ b/dev-packages/e2e-tests/test-applications/node-fastify-4/src/app-handle-error-override.ts @@ -15,6 +15,7 @@ console.warn = new Proxy(console.warn, { }); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/node-fastify-4/src/app.ts b/dev-packages/e2e-tests/test-applications/node-fastify-4/src/app.ts index 1c428c0486f9..b519d42ae647 100644 --- a/dev-packages/e2e-tests/test-applications/node-fastify-4/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/node-fastify-4/src/app.ts @@ -15,6 +15,7 @@ console.warn = new Proxy(console.warn, { }); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/node-fastify-5/src/app-handle-error-override.ts b/dev-packages/e2e-tests/test-applications/node-fastify-5/src/app-handle-error-override.ts index 91f0353816bb..30dbbc6cdca0 100644 --- a/dev-packages/e2e-tests/test-applications/node-fastify-5/src/app-handle-error-override.ts +++ b/dev-packages/e2e-tests/test-applications/node-fastify-5/src/app-handle-error-override.ts @@ -15,6 +15,7 @@ console.warn = new Proxy(console.warn, { }); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/node-fastify-5/src/app.ts b/dev-packages/e2e-tests/test-applications/node-fastify-5/src/app.ts index 610a42f6fc00..05ea616c25c3 100644 --- a/dev-packages/e2e-tests/test-applications/node-fastify-5/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/node-fastify-5/src/app.ts @@ -15,6 +15,7 @@ console.warn = new Proxy(console.warn, { }); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/node-firebase/firestore-app/src/init.ts b/dev-packages/e2e-tests/test-applications/node-firebase/firestore-app/src/init.ts index 41e16e072901..8f8fc4dcba9a 100644 --- a/dev-packages/e2e-tests/test-applications/node-firebase/firestore-app/src/init.ts +++ b/dev-packages/e2e-tests/test-applications/node-firebase/firestore-app/src/init.ts @@ -11,6 +11,7 @@ if (useOrchestrion) { } Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', release: '1.0', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/node-firebase/functions/src/init.ts b/dev-packages/e2e-tests/test-applications/node-firebase/functions/src/init.ts index c3b4a642375a..60959f8e932b 100644 --- a/dev-packages/e2e-tests/test-applications/node-firebase/functions/src/init.ts +++ b/dev-packages/e2e-tests/test-applications/node-firebase/functions/src/init.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/node'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', release: '1.0', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/node-hapi/src/app.js b/dev-packages/e2e-tests/test-applications/node-hapi/src/app.js index 8b68e8412aba..7ca52a8b658f 100644 --- a/dev-packages/e2e-tests/test-applications/node-hapi/src/app.js +++ b/dev-packages/e2e-tests/test-applications/node-hapi/src/app.js @@ -1,6 +1,7 @@ const Sentry = require('@sentry/node'); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, includeLocalVariables: true, diff --git a/dev-packages/e2e-tests/test-applications/node-koa/index.js b/dev-packages/e2e-tests/test-applications/node-koa/index.js index 629c9bb82c04..ab5516192de5 100644 --- a/dev-packages/e2e-tests/test-applications/node-koa/index.js +++ b/dev-packages/e2e-tests/test-applications/node-koa/index.js @@ -1,6 +1,7 @@ const Sentry = require('@sentry/node'); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, includeLocalVariables: true, diff --git a/dev-packages/e2e-tests/test-applications/node-orchestrion-webpack/src/no-orchestrion.mjs b/dev-packages/e2e-tests/test-applications/node-orchestrion-webpack/src/no-orchestrion.mjs index 104d9144f5f9..bfe2eceb81e2 100644 --- a/dev-packages/e2e-tests/test-applications/node-orchestrion-webpack/src/no-orchestrion.mjs +++ b/dev-packages/e2e-tests/test-applications/node-orchestrion-webpack/src/no-orchestrion.mjs @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/node'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', tracesSampleRate: 1, }); diff --git a/dev-packages/e2e-tests/test-applications/node-orchestrion-webpack/src/with-orchestrion.mjs b/dev-packages/e2e-tests/test-applications/node-orchestrion-webpack/src/with-orchestrion.mjs index 29c9ab3d5de8..70d592864fb5 100644 --- a/dev-packages/e2e-tests/test-applications/node-orchestrion-webpack/src/with-orchestrion.mjs +++ b/dev-packages/e2e-tests/test-applications/node-orchestrion-webpack/src/with-orchestrion.mjs @@ -5,6 +5,7 @@ import * as Sentry from '@sentry/node'; Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', tracesSampleRate: 1, }); diff --git a/dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/src/instrument.ts b/dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/src/instrument.ts index de09f0965baa..b041c706638d 100644 --- a/dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/node-otel-custom-sampler/src/instrument.ts @@ -4,6 +4,7 @@ import { SentryPropagator, SentrySpanProcessor } from '@sentry/opentelemetry'; import { CustomSampler } from './custom-sampler'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN || diff --git a/dev-packages/e2e-tests/test-applications/node-otel-sdk-node/src/instrument.ts b/dev-packages/e2e-tests/test-applications/node-otel-sdk-node/src/instrument.ts index 5cb2e5570db9..169ffa16e238 100644 --- a/dev-packages/e2e-tests/test-applications/node-otel-sdk-node/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/node-otel-sdk-node/src/instrument.ts @@ -4,6 +4,7 @@ const Sentry = require('@sentry/node'); const { SentrySpanProcessor, SentryPropagator, SentrySampler } = require('@sentry/opentelemetry'); const sentryClient = Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN || diff --git a/dev-packages/e2e-tests/test-applications/node-otel-without-tracing/src/instrument.ts b/dev-packages/e2e-tests/test-applications/node-otel-without-tracing/src/instrument.ts index ea9b6ae57545..8a096bf201af 100644 --- a/dev-packages/e2e-tests/test-applications/node-otel-without-tracing/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/node-otel-without-tracing/src/instrument.ts @@ -7,6 +7,7 @@ const { UndiciInstrumentation } = require('@opentelemetry/instrumentation-undici const { registerInstrumentations } = require('@opentelemetry/instrumentation'); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN || diff --git a/dev-packages/e2e-tests/test-applications/node-otel/src/instrument.ts b/dev-packages/e2e-tests/test-applications/node-otel/src/instrument.ts index bbc5ddf9c30f..f038ba16a5e9 100644 --- a/dev-packages/e2e-tests/test-applications/node-otel/src/instrument.ts +++ b/dev-packages/e2e-tests/test-applications/node-otel/src/instrument.ts @@ -3,6 +3,7 @@ const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http') const Sentry = require('@sentry/node'); const sentryClient = Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN || diff --git a/dev-packages/e2e-tests/test-applications/node-profiling-cjs/index.ts b/dev-packages/e2e-tests/test-applications/node-profiling-cjs/index.ts index e956a1d9de33..b1debf9a25c5 100644 --- a/dev-packages/e2e-tests/test-applications/node-profiling-cjs/index.ts +++ b/dev-packages/e2e-tests/test-applications/node-profiling-cjs/index.ts @@ -4,6 +4,7 @@ import { nodeProfilingIntegration } from '@sentry/profiling-node'; const wait = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); Sentry.init({ + traceLifecycle: 'static', dsn: 'https://7fa19397baaf433f919fbe02228d5470@o1137848.ingest.sentry.io/6625302', integrations: [nodeProfilingIntegration()], tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/node-profiling-electron/index.electron.js b/dev-packages/e2e-tests/test-applications/node-profiling-electron/index.electron.js index d08ac4ecc142..7c4246d616a9 100644 --- a/dev-packages/e2e-tests/test-applications/node-profiling-electron/index.electron.js +++ b/dev-packages/e2e-tests/test-applications/node-profiling-electron/index.electron.js @@ -4,6 +4,7 @@ const Sentry = require('@sentry/electron/main'); const path = require('node:path'); Sentry.init({ + traceLifecycle: 'static', dsn: 'https://7fa19397baaf433f919fbe02228d5470@o1137848.ingest.sentry.io/6625302', debug: true, tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/node-profiling-esm/index.ts b/dev-packages/e2e-tests/test-applications/node-profiling-esm/index.ts index e956a1d9de33..b1debf9a25c5 100644 --- a/dev-packages/e2e-tests/test-applications/node-profiling-esm/index.ts +++ b/dev-packages/e2e-tests/test-applications/node-profiling-esm/index.ts @@ -4,6 +4,7 @@ import { nodeProfilingIntegration } from '@sentry/profiling-node'; const wait = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); Sentry.init({ + traceLifecycle: 'static', dsn: 'https://7fa19397baaf433f919fbe02228d5470@o1137848.ingest.sentry.io/6625302', integrations: [nodeProfilingIntegration()], tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/sentry.client.config.ts index 9a9566051452..e14d25bfc0c1 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/sentry.client.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nuxt'; import { useRuntimeConfig } from '#imports'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: useRuntimeConfig().public.sentry.dsn, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/sentry.server.config.ts index 729b2296c683..60138a64a4c8 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nuxt'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, // Capture 100% of the transactions diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3-min/sentry.client.config.ts index 9a9566051452..e14d25bfc0c1 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/sentry.client.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nuxt'; import { useRuntimeConfig } from '#imports'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: useRuntimeConfig().public.sentry.dsn, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3-min/sentry.server.config.ts index 729b2296c683..60138a64a4c8 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nuxt'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, // Capture 100% of the transactions diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/sentry.client.config.ts index 9a9566051452..e14d25bfc0c1 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/sentry.client.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nuxt'; import { useRuntimeConfig } from '#imports'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: useRuntimeConfig().public.sentry.dsn, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/sentry.server.config.ts index f08dea23ae03..3e6a7f07ab83 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nuxt'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, // Capture 100% of the transactions diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3/sentry.client.config.ts index 9a9566051452..e14d25bfc0c1 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/sentry.client.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nuxt'; import { useRuntimeConfig } from '#imports'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: useRuntimeConfig().public.sentry.dsn, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-3/sentry.server.config.ts index e04331934f99..44d9dd623666 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nuxt'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, // Capture 100% of the transactions diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/sentry.client.config.ts index 6bbcc42a623b..ddbbd2581536 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/sentry.client.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nuxt'; import { useRuntimeConfig } from '#imports'; Sentry.init({ + traceLifecycle: 'static', dsn: useRuntimeConfig().public.sentry.dsn, tunnel: 'http://localhost:3031/', // proxy server tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/sentry.server.config.ts index b58f42b3aec1..c1535ef2e267 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-4-orchestrion/sentry.server.config.ts @@ -6,6 +6,7 @@ import * as Sentry from '@sentry/nuxt'; Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', tracesSampleRate: 1.0, tunnel: 'http://localhost:3031/', // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-4/sentry.client.config.ts index 7b5d97ff0b09..0bab1499bcde 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-4/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-4/sentry.client.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nuxt'; import { usePinia, useRuntimeConfig } from '#imports'; Sentry.init({ + traceLifecycle: 'static', dsn: useRuntimeConfig().public.sentry.dsn, tunnel: `http://localhost:3031/`, // proxy server tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-4/sentry.server.config.ts index 26519911072b..aa8da2067fba 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-4/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-4/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nuxt'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', tracesSampleRate: 1.0, // Capture 100% of the transactions tunnel: 'http://localhost:3031/', // proxy server diff --git a/dev-packages/e2e-tests/test-applications/nuxt-5/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-5/sentry.client.config.ts index 900df0811faa..342fa2b4472e 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-5/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-5/sentry.client.config.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/nuxt'; import { /* usePinia,*/ useRuntimeConfig } from '#imports'; Sentry.init({ + traceLifecycle: 'static', dsn: useRuntimeConfig().public.sentry.dsn, tunnel: `http://localhost:3031/`, // proxy server tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/nuxt-5/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nuxt-5/sentry.server.config.ts index 26519911072b..aa8da2067fba 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-5/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nuxt-5/sentry.server.config.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/nuxt'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', tracesSampleRate: 1.0, // Capture 100% of the transactions tunnel: 'http://localhost:3031/', // proxy server diff --git a/dev-packages/e2e-tests/test-applications/react-17/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-17/src/index.tsx index ca6918c46106..abd6688c7350 100644 --- a/dev-packages/e2e-tests/test-applications/react-17/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-17/src/index.tsx @@ -16,6 +16,7 @@ import User from './pages/User'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-19/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-19/src/index.tsx index 16209793ae07..c43ee75a22c8 100644 --- a/dev-packages/e2e-tests/test-applications/react-19/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-19/src/index.tsx @@ -4,6 +4,7 @@ import ReactDOM from 'react-dom/client'; import Index from './pages/Index'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, release: 'e2e-test', diff --git a/dev-packages/e2e-tests/test-applications/react-create-browser-router/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-create-browser-router/src/index.tsx index c7ad16eebcf7..bec2f5b24481 100644 --- a/dev-packages/e2e-tests/test-applications/react-create-browser-router/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-create-browser-router/src/index.tsx @@ -15,6 +15,7 @@ import User from './pages/User'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', // environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx index 86de5f20378d..277600d3b7c6 100644 --- a/dev-packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx @@ -16,6 +16,7 @@ import Group from './pages/Group'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', // environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-create-memory-router/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-create-memory-router/src/index.tsx index f71572f9dc1f..8cd283650abd 100644 --- a/dev-packages/e2e-tests/test-applications/react-create-memory-router/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-create-memory-router/src/index.tsx @@ -15,6 +15,7 @@ import User from './pages/User'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', // environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-router-5/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-5/src/index.tsx index cc9b307e620a..f4fb98246390 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-5/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-5/src/index.tsx @@ -11,6 +11,7 @@ const replay = Sentry.replayIntegration(); const history = createBrowserHistory(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN || diff --git a/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/index.tsx index 4ae0c208e998..09751f0f920d 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/index.tsx @@ -16,6 +16,7 @@ import Index from './pages/Index'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-router-6-use-routes/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-6-use-routes/src/index.tsx index 0ac33b9f6c5f..a049e56eee74 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6-use-routes/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-6-use-routes/src/index.tsx @@ -15,6 +15,7 @@ import User from './pages/User'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-router-6/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-6/src/index.tsx index 1430a44935b6..903f2ed53187 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-6/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-6/src/index.tsx @@ -18,6 +18,7 @@ import User from './pages/User'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx index 5c381487587f..d896b37dc53c 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/index.tsx @@ -18,6 +18,7 @@ import Index from './pages/Index'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/app/entry.client.tsx index 97539b6fd7cd..856bb4b3208a 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/app/entry.client.tsx @@ -8,6 +8,7 @@ import { HydratedRouter } from 'react-router/dom'; const tracing = Sentry.reactRouterTracingIntegration({ useInstrumentationAPI: true }); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: 'https://username@domain/123', tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/instrument.mjs b/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/instrument.mjs index bb1dad2e5da9..bf39b453fb97 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/react-router-7-framework-instrumentation/instrument.mjs @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/react-router'; // Initialize Sentry early (before the server starts) // The server instrumentations are created in entry.server.tsx Sentry.init({ + traceLifecycle: 'static', dsn: 'https://username@domain/123', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-framework-spa/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-framework-spa/app/entry.client.tsx index 249e18d27c08..fb6b19851227 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-framework-spa/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-framework-spa/app/entry.client.tsx @@ -4,6 +4,7 @@ import { hydrateRoot } from 'react-dom/client'; import { HydratedRouter } from 'react-router/dom'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions // todo: get this from env dsn: 'https://username@domain/123', diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-framework/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-framework/app/entry.client.tsx index 005268b40ad0..d4a0e1d0900b 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-framework/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-framework/app/entry.client.tsx @@ -4,6 +4,7 @@ import { hydrateRoot } from 'react-dom/client'; import { HydratedRouter } from 'react-router/dom'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions // todo: get this from env dsn: 'https://username@domain/123', diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-framework/instrument.mjs b/dev-packages/e2e-tests/test-applications/react-router-7-framework/instrument.mjs index c16240141b6d..00a6d2952286 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-framework/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/react-router-7-framework/instrument.mjs @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/react-router'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://username@domain/123', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx index 4d47ddbf58bf..6ba42186ed07 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-lazy-routes/src/index.tsx @@ -78,6 +78,7 @@ const lazyRouteManifest = [ ]; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-router-7-spa/src/main.tsx b/dev-packages/e2e-tests/test-applications/react-router-7-spa/src/main.tsx index 202de7be19b4..0de47b934838 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-7-spa/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-7-spa/src/main.tsx @@ -18,6 +18,7 @@ import User from './pages/User'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-router-8-cross-usage/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-router-8-cross-usage/src/index.tsx index 46be7181b87c..26d8dc188385 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-8-cross-usage/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-8-cross-usage/src/index.tsx @@ -18,6 +18,7 @@ import Index from './pages/Index'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-router-8-framework/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/react-router-8-framework/app/entry.client.tsx index 005268b40ad0..d4a0e1d0900b 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-8-framework/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-8-framework/app/entry.client.tsx @@ -4,6 +4,7 @@ import { hydrateRoot } from 'react-dom/client'; import { HydratedRouter } from 'react-router/dom'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions // todo: get this from env dsn: 'https://username@domain/123', diff --git a/dev-packages/e2e-tests/test-applications/react-router-8-framework/instrument.mjs b/dev-packages/e2e-tests/test-applications/react-router-8-framework/instrument.mjs index c16240141b6d..00a6d2952286 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-8-framework/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/react-router-8-framework/instrument.mjs @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/react-router'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://username@domain/123', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/react-router-8-orchestrion/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/react-router-8-orchestrion/app/entry.client.tsx index 2070e31b2af9..83f29c042f0b 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-8-orchestrion/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-8-orchestrion/app/entry.client.tsx @@ -4,6 +4,7 @@ import { hydrateRoot } from 'react-dom/client'; import { HydratedRouter } from 'react-router/dom'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: 'https://username@domain/123', tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/react-router-8-orchestrion/instrument.mjs b/dev-packages/e2e-tests/test-applications/react-router-8-orchestrion/instrument.mjs index cc4d222ff3c2..3752c17fb589 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-8-orchestrion/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/react-router-8-orchestrion/instrument.mjs @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/react-router'; Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', dsn: 'https://username@domain/123', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/react-router-8-spa/src/main.tsx b/dev-packages/e2e-tests/test-applications/react-router-8-spa/src/main.tsx index 202de7be19b4..0de47b934838 100644 --- a/dev-packages/e2e-tests/test-applications/react-router-8-spa/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/react-router-8-spa/src/main.tsx @@ -18,6 +18,7 @@ import User from './pages/User'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/react-send-to-sentry/src/index.tsx b/dev-packages/e2e-tests/test-applications/react-send-to-sentry/src/index.tsx index 3a87a53ffdfa..d121f08b534e 100644 --- a/dev-packages/e2e-tests/test-applications/react-send-to-sentry/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/react-send-to-sentry/src/index.tsx @@ -16,6 +16,7 @@ import User from './pages/User'; const replay = Sentry.replayIntegration(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.REACT_APP_E2E_TEST_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/remix-hydrogen/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/remix-hydrogen/app/entry.client.tsx index 6b9287e6f709..0008ebe5c7c8 100644 --- a/dev-packages/e2e-tests/test-applications/remix-hydrogen/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/remix-hydrogen/app/entry.client.tsx @@ -5,6 +5,7 @@ import { useEffect } from 'react'; import { hydrateRoot } from 'react-dom/client'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions // Could not find a working way to set the DSN in the browser side from the environment variables dsn: 'https://public@dsn.ingest.sentry.io/1337', diff --git a/dev-packages/e2e-tests/test-applications/remix-server-timing/app/entry.client.tsx b/dev-packages/e2e-tests/test-applications/remix-server-timing/app/entry.client.tsx index 85c29d310c1a..68e644bf1a3c 100644 --- a/dev-packages/e2e-tests/test-applications/remix-server-timing/app/entry.client.tsx +++ b/dev-packages/e2e-tests/test-applications/remix-server-timing/app/entry.client.tsx @@ -20,6 +20,7 @@ import { StrictMode, startTransition, useEffect } from 'react'; import { hydrateRoot } from 'react-dom/client'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: window.ENV.SENTRY_DSN, integrations: [ diff --git a/dev-packages/e2e-tests/test-applications/remix-server-timing/instrument.server.cjs b/dev-packages/e2e-tests/test-applications/remix-server-timing/instrument.server.cjs index 6d211cac4592..c231a4742dfb 100644 --- a/dev-packages/e2e-tests/test-applications/remix-server-timing/instrument.server.cjs +++ b/dev-packages/e2e-tests/test-applications/remix-server-timing/instrument.server.cjs @@ -1,6 +1,7 @@ const Sentry = require('@sentry/remix'); Sentry.init({ + traceLifecycle: 'static', tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production! environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, diff --git a/dev-packages/e2e-tests/test-applications/solid-tanstack-router/src/main.tsx b/dev-packages/e2e-tests/test-applications/solid-tanstack-router/src/main.tsx index 2c9df09d5b43..9caba73259d2 100644 --- a/dev-packages/e2e-tests/test-applications/solid-tanstack-router/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/solid-tanstack-router/src/main.tsx @@ -97,6 +97,7 @@ declare module '@tanstack/solid-router' { declare const __APP_DSN__: string; Sentry.init({ + traceLifecycle: 'static', dsn: __APP_DSN__, debug: true, environment: 'qa', // dynamic sampling bias to keep transactions diff --git a/dev-packages/e2e-tests/test-applications/solid/src/index.tsx b/dev-packages/e2e-tests/test-applications/solid/src/index.tsx index 882bb32d853a..383330dafc2f 100644 --- a/dev-packages/e2e-tests/test-applications/solid/src/index.tsx +++ b/dev-packages/e2e-tests/test-applications/solid/src/index.tsx @@ -5,6 +5,7 @@ import App from './app'; import './index.css'; Sentry.init({ + traceLifecycle: 'static', dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, debug: true, environment: 'qa', // dynamic sampling bias to keep transactions diff --git a/dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/src/entry-client.tsx b/dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/src/entry-client.tsx index 11087fbb5918..d9900ed5689d 100644 --- a/dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/src/entry-client.tsx +++ b/dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/src/entry-client.tsx @@ -4,6 +4,7 @@ import { solidRouterBrowserTracingIntegration } from '@sentry/solidstart/solidro import { StartClient, mount } from '@solidjs/start/client'; Sentry.init({ + traceLifecycle: 'static', // We can't use env variables here, seems like they are stripped // out in production builds. dsn: 'https://public@dsn.ingest.sentry.io/1337', diff --git a/dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/src/instrument.server.ts b/dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/src/instrument.server.ts index 3dd5d8933b7b..d89f2566f8be 100644 --- a/dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/src/instrument.server.ts +++ b/dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/src/instrument.server.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/solidstart'; Sentry.init({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, // Capture 100% of the transactions diff --git a/dev-packages/e2e-tests/test-applications/solidstart-spa/src/entry-client.tsx b/dev-packages/e2e-tests/test-applications/solidstart-spa/src/entry-client.tsx index 11087fbb5918..d9900ed5689d 100644 --- a/dev-packages/e2e-tests/test-applications/solidstart-spa/src/entry-client.tsx +++ b/dev-packages/e2e-tests/test-applications/solidstart-spa/src/entry-client.tsx @@ -4,6 +4,7 @@ import { solidRouterBrowserTracingIntegration } from '@sentry/solidstart/solidro import { StartClient, mount } from '@solidjs/start/client'; Sentry.init({ + traceLifecycle: 'static', // We can't use env variables here, seems like they are stripped // out in production builds. dsn: 'https://public@dsn.ingest.sentry.io/1337', diff --git a/dev-packages/e2e-tests/test-applications/solidstart-spa/src/instrument.server.ts b/dev-packages/e2e-tests/test-applications/solidstart-spa/src/instrument.server.ts index 3dd5d8933b7b..d89f2566f8be 100644 --- a/dev-packages/e2e-tests/test-applications/solidstart-spa/src/instrument.server.ts +++ b/dev-packages/e2e-tests/test-applications/solidstart-spa/src/instrument.server.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/solidstart'; Sentry.init({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, // Capture 100% of the transactions diff --git a/dev-packages/e2e-tests/test-applications/solidstart-top-level-import/src/entry-client.tsx b/dev-packages/e2e-tests/test-applications/solidstart-top-level-import/src/entry-client.tsx index 11087fbb5918..d9900ed5689d 100644 --- a/dev-packages/e2e-tests/test-applications/solidstart-top-level-import/src/entry-client.tsx +++ b/dev-packages/e2e-tests/test-applications/solidstart-top-level-import/src/entry-client.tsx @@ -4,6 +4,7 @@ import { solidRouterBrowserTracingIntegration } from '@sentry/solidstart/solidro import { StartClient, mount } from '@solidjs/start/client'; Sentry.init({ + traceLifecycle: 'static', // We can't use env variables here, seems like they are stripped // out in production builds. dsn: 'https://public@dsn.ingest.sentry.io/1337', diff --git a/dev-packages/e2e-tests/test-applications/solidstart-top-level-import/src/instrument.server.ts b/dev-packages/e2e-tests/test-applications/solidstart-top-level-import/src/instrument.server.ts index 3dd5d8933b7b..d89f2566f8be 100644 --- a/dev-packages/e2e-tests/test-applications/solidstart-top-level-import/src/instrument.server.ts +++ b/dev-packages/e2e-tests/test-applications/solidstart-top-level-import/src/instrument.server.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/solidstart'; Sentry.init({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, // Capture 100% of the transactions diff --git a/dev-packages/e2e-tests/test-applications/solidstart/src/entry-client.tsx b/dev-packages/e2e-tests/test-applications/solidstart/src/entry-client.tsx index 11087fbb5918..d9900ed5689d 100644 --- a/dev-packages/e2e-tests/test-applications/solidstart/src/entry-client.tsx +++ b/dev-packages/e2e-tests/test-applications/solidstart/src/entry-client.tsx @@ -4,6 +4,7 @@ import { solidRouterBrowserTracingIntegration } from '@sentry/solidstart/solidro import { StartClient, mount } from '@solidjs/start/client'; Sentry.init({ + traceLifecycle: 'static', // We can't use env variables here, seems like they are stripped // out in production builds. dsn: 'https://public@dsn.ingest.sentry.io/1337', diff --git a/dev-packages/e2e-tests/test-applications/solidstart/src/instrument.server.ts b/dev-packages/e2e-tests/test-applications/solidstart/src/instrument.server.ts index 3dd5d8933b7b..d89f2566f8be 100644 --- a/dev-packages/e2e-tests/test-applications/solidstart/src/instrument.server.ts +++ b/dev-packages/e2e-tests/test-applications/solidstart/src/instrument.server.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/solidstart'; Sentry.init({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1.0, // Capture 100% of the transactions diff --git a/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.client.config.ts b/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.client.config.ts index 1d7351a64c24..1db88970e45e 100644 --- a/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.client.config.ts +++ b/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.client.config.ts @@ -5,6 +5,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', environment: 'qa', // dynamic sampling bias to keep transactions diff --git a/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.edge.config.ts b/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.edge.config.ts index fef8918159bc..840d81ca60ce 100644 --- a/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.edge.config.ts +++ b/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.edge.config.ts @@ -5,6 +5,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', environment: 'qa', // dynamic sampling bias to keep transactions dataCollection: { userInfo: true }, diff --git a/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.server.config.ts index 3992352ec961..7d7e395886f3 100644 --- a/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/supabase-nextjs/sentry.server.config.ts @@ -5,6 +5,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ + traceLifecycle: 'static', dsn: 'https://public@dsn.ingest.sentry.io/1337', environment: 'qa', // dynamic sampling bias to keep transactions tracesSampleRate: 1, diff --git a/dev-packages/e2e-tests/test-applications/svelte-5/src/main.ts b/dev-packages/e2e-tests/test-applications/svelte-5/src/main.ts index 9f5fb70cea94..5a475cb7ab95 100644 --- a/dev-packages/e2e-tests/test-applications/svelte-5/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/svelte-5/src/main.ts @@ -5,6 +5,7 @@ import './app.css'; import * as Sentry from '@sentry/svelte'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2-kit-tracing/src/hooks.client.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2-kit-tracing/src/hooks.client.ts index 91592e7ab932..2b68fff0c5ac 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2-kit-tracing/src/hooks.client.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2-kit-tracing/src/hooks.client.ts @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/sveltekit'; import * as Spotlight from '@spotlightjs/spotlight'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: env.PUBLIC_E2E_TEST_DSN, debug: !!env.PUBLIC_DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2-kit-tracing/src/instrumentation.server.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2-kit-tracing/src/instrumentation.server.ts index 136b51a44dee..c56287af4dc5 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2-kit-tracing/src/instrumentation.server.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2-kit-tracing/src/instrumentation.server.ts @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/sveltekit'; import { E2E_TEST_DSN } from '$env/static/private'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/src/hooks.client.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/src/hooks.client.ts index 5b1665875c8c..44c7c5e1e3ae 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/src/hooks.client.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/src/hooks.client.ts @@ -2,6 +2,7 @@ import { env } from '$env/dynamic/public'; import * as Sentry from '@sentry/sveltekit'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: env.PUBLIC_E2E_TEST_DSN, debug: !!env.PUBLIC_DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/src/hooks.server.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/src/hooks.server.ts index 1da7f92c8850..40d40daaa466 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/src/hooks.server.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2-orchestrion/src/hooks.server.ts @@ -8,6 +8,7 @@ import * as Sentry from '@sentry/sveltekit'; Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2-svelte-5/src/hooks.client.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2-svelte-5/src/hooks.client.ts index 91592e7ab932..2b68fff0c5ac 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2-svelte-5/src/hooks.client.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2-svelte-5/src/hooks.client.ts @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/sveltekit'; import * as Spotlight from '@spotlightjs/spotlight'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: env.PUBLIC_E2E_TEST_DSN, debug: !!env.PUBLIC_DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2-svelte-5/src/hooks.server.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2-svelte-5/src/hooks.server.ts index 99bf4a17aa96..27e281bd95a4 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2-svelte-5/src/hooks.server.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2-svelte-5/src/hooks.server.ts @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/sveltekit'; import { setupSidecar } from '@spotlightjs/spotlight/sidecar'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2.5.0-twp/src/hooks.client.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2.5.0-twp/src/hooks.client.ts index 25cedeee2d07..b28018a58771 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2.5.0-twp/src/hooks.client.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2.5.0-twp/src/hooks.client.ts @@ -2,6 +2,7 @@ import { env } from '$env/dynamic/public'; import * as Sentry from '@sentry/sveltekit'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: env.PUBLIC_E2E_TEST_DSN, release: '1.0.0', diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2.5.0-twp/src/hooks.server.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2.5.0-twp/src/hooks.server.ts index e60e51b25968..f94e0cdd4651 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2.5.0-twp/src/hooks.server.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2.5.0-twp/src/hooks.server.ts @@ -2,6 +2,7 @@ import { E2E_TEST_DSN } from '$env/static/private'; import * as Sentry from '@sentry/sveltekit'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2/src/hooks.client.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2/src/hooks.client.ts index b174e9671b8d..2de2a2dd0d1f 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2/src/hooks.client.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2/src/hooks.client.ts @@ -2,6 +2,7 @@ import { env } from '$env/dynamic/public'; import * as Sentry from '@sentry/sveltekit'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: env.PUBLIC_E2E_TEST_DSN, debug: !!env.PUBLIC_DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-2/src/hooks.server.ts b/dev-packages/e2e-tests/test-applications/sveltekit-2/src/hooks.server.ts index 92909c53a24c..5780bbcb38c4 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-2/src/hooks.server.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-2/src/hooks.server.ts @@ -2,6 +2,7 @@ import { E2E_TEST_DSN } from '$env/static/private'; import * as Sentry from '@sentry/sveltekit'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-3/src/hooks.client.ts b/dev-packages/e2e-tests/test-applications/sveltekit-3/src/hooks.client.ts index 4d4723a527d3..050a7171d7ef 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-3/src/hooks.client.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-3/src/hooks.client.ts @@ -2,6 +2,7 @@ import { PUBLIC_E2E_TEST_DSN } from '$app/env/public'; import * as Sentry from '@sentry/sveltekit'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: PUBLIC_E2E_TEST_DSN, tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-3/src/instrumentation.server.ts b/dev-packages/e2e-tests/test-applications/sveltekit-3/src/instrumentation.server.ts index 18c0b65b6db7..5b232f5e2dfe 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-3/src/instrumentation.server.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-3/src/instrumentation.server.ts @@ -4,6 +4,7 @@ import * as Sentry from '@sentry/sveltekit'; // With SvelteKit 3 native instrumentation enabled (`experimental.instrumentation.server`), // `Sentry.init` runs here instead of in `hooks.server.ts`. Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/src/hooks.client.ts b/dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/src/hooks.client.ts index 4dc12acebc45..0cfa76d7a622 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/src/hooks.client.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/src/hooks.client.ts @@ -2,6 +2,7 @@ import { env } from '$env/dynamic/public'; import * as Sentry from '@sentry/sveltekit'; Sentry.init({ + traceLifecycle: 'static', dsn: env.PUBLIC_E2E_TEST_DSN, }); diff --git a/dev-packages/e2e-tests/test-applications/tanstack-router/src/main.tsx b/dev-packages/e2e-tests/test-applications/tanstack-router/src/main.tsx index 3c2ed2905383..23425faee718 100644 --- a/dev-packages/e2e-tests/test-applications/tanstack-router/src/main.tsx +++ b/dev-packages/e2e-tests/test-applications/tanstack-router/src/main.tsx @@ -94,6 +94,7 @@ const router = createRouter({ routeTree }); declare const __APP_DSN__: string; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: __APP_DSN__, integrations: [Sentry.tanstackRouterBrowserTracingIntegration(router)], diff --git a/dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/src/instrument.client.ts b/dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/src/instrument.client.ts index ac3e62c26447..b3b083c3c644 100644 --- a/dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/src/instrument.client.ts +++ b/dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/src/instrument.client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/browser'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', dsn: 'https://public@dsn.ingest.sentry.io/1337', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/tanstackstart-react-orchestrion/instrument.server.mjs b/dev-packages/e2e-tests/test-applications/tanstackstart-react-orchestrion/instrument.server.mjs index b74f100217d1..98aa0cf8229e 100644 --- a/dev-packages/e2e-tests/test-applications/tanstackstart-react-orchestrion/instrument.server.mjs +++ b/dev-packages/e2e-tests/test-applications/tanstackstart-react-orchestrion/instrument.server.mjs @@ -8,6 +8,7 @@ import * as Sentry from '@sentry/tanstackstart-react'; Sentry.experimentalUseDiagnosticsChannelInjection(); Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, tunnel: 'http://localhost:3031/', // proxy server diff --git a/dev-packages/e2e-tests/test-applications/tanstackstart-react-orchestrion/src/instrument.client.ts b/dev-packages/e2e-tests/test-applications/tanstackstart-react-orchestrion/src/instrument.client.ts index ad7d0b23a8fa..95351c60f9ca 100644 --- a/dev-packages/e2e-tests/test-applications/tanstackstart-react-orchestrion/src/instrument.client.ts +++ b/dev-packages/e2e-tests/test-applications/tanstackstart-react-orchestrion/src/instrument.client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/tanstackstart-react'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: __APP_DSN__, tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/tanstackstart-react/src/instrument.client.ts b/dev-packages/e2e-tests/test-applications/tanstackstart-react/src/instrument.client.ts index ad7d0b23a8fa..95351c60f9ca 100644 --- a/dev-packages/e2e-tests/test-applications/tanstackstart-react/src/instrument.client.ts +++ b/dev-packages/e2e-tests/test-applications/tanstackstart-react/src/instrument.client.ts @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/tanstackstart-react'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: __APP_DSN__, tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/tsx-express/instrument.mjs b/dev-packages/e2e-tests/test-applications/tsx-express/instrument.mjs index ddc96c7c17fc..a83e7afea09c 100644 --- a/dev-packages/e2e-tests/test-applications/tsx-express/instrument.mjs +++ b/dev-packages/e2e-tests/test-applications/tsx-express/instrument.mjs @@ -1,6 +1,7 @@ import * as Sentry from '@sentry/node'; Sentry.init({ + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: process.env.E2E_TEST_DSN, debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/vue-3/src/main.ts b/dev-packages/e2e-tests/test-applications/vue-3/src/main.ts index 340820d333ec..bcdc97fdb8df 100644 --- a/dev-packages/e2e-tests/test-applications/vue-3/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/vue-3/src/main.ts @@ -13,6 +13,7 @@ const app = createApp(App); const pinia = createPinia(); Sentry.init({ + traceLifecycle: 'static', app, dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/vue-tanstack-router/src/main.ts b/dev-packages/e2e-tests/test-applications/vue-tanstack-router/src/main.ts index c17c2c81147d..f90290c53002 100644 --- a/dev-packages/e2e-tests/test-applications/vue-tanstack-router/src/main.ts +++ b/dev-packages/e2e-tests/test-applications/vue-tanstack-router/src/main.ts @@ -57,6 +57,7 @@ declare module '@tanstack/vue-router' { const app = createApp(RouterProvider, { router }); Sentry.init({ + traceLifecycle: 'static', app, dsn: import.meta.env.PUBLIC_E2E_TEST_DSN, debug: true, diff --git a/dev-packages/e2e-tests/test-applications/webpack-4/entry.js b/dev-packages/e2e-tests/test-applications/webpack-4/entry.js index 69877184b91a..6cb756072d55 100644 --- a/dev-packages/e2e-tests/test-applications/webpack-4/entry.js +++ b/dev-packages/e2e-tests/test-applications/webpack-4/entry.js @@ -1,6 +1,7 @@ import { browserTracingIntegration, init } from '@sentry/browser'; init({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, integrations: [browserTracingIntegration()], tunnel: 'http://localhost:3031', diff --git a/dev-packages/e2e-tests/test-applications/webpack-5/entry.js b/dev-packages/e2e-tests/test-applications/webpack-5/entry.js index 69877184b91a..6cb756072d55 100644 --- a/dev-packages/e2e-tests/test-applications/webpack-5/entry.js +++ b/dev-packages/e2e-tests/test-applications/webpack-5/entry.js @@ -1,6 +1,7 @@ import { browserTracingIntegration, init } from '@sentry/browser'; init({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, integrations: [browserTracingIntegration()], tunnel: 'http://localhost:3031', From 436200bba45a6b155a83290916c9263563ab7f29 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Fri, 24 Jul 2026 16:01:43 +0200 Subject: [PATCH 2/2] test(e2e): Pin static lifecycle in helper initializers Keep transaction-based E2E suites stable when the default trace lifecycle changes by explicitly opting indirect SDK initialization paths into static mode. Co-Authored-By: Cursor --- .../astro-6-cf-workers/sentry.server.config.js | 1 + .../test-applications/cloudflare-agent/worker/index.ts | 2 ++ .../test-applications/cloudflare-local-workers/src/index.ts | 2 ++ .../test-applications/cloudflare-mcp-agent/src/index.ts | 2 ++ .../e2e-tests/test-applications/cloudflare-mcp/src/index.ts | 1 + .../test-applications/cloudflare-orchestrion-mysql/src/index.ts | 1 + .../test-applications/cloudflare-vercelai-v7-als/src/index.ts | 1 + .../cloudflare-vercelai-v7-compat/src/index.ts | 1 + .../cloudflare-workers-workflow-legacy/src/index.ts | 2 ++ .../e2e-tests/test-applications/cloudflare-workers/src/index.ts | 2 ++ .../test-applications/cloudflare-workersentrypoint/src/index.ts | 2 ++ .../e2e-tests/test-applications/effect-3-browser/src/index.js | 1 + .../e2e-tests/test-applications/effect-3-node/src/app.ts | 1 + .../e2e-tests/test-applications/effect-4-browser/src/index.js | 1 + .../e2e-tests/test-applications/effect-4-node/src/app.ts | 1 + .../e2e-tests/test-applications/hono-4/src/entry.bun.ts | 1 + .../e2e-tests/test-applications/hono-4/src/entry.cloudflare.ts | 1 + .../e2e-tests/test-applications/hono-4/src/entry.deno.ts | 1 + .../test-applications/hydrogen-react-router-7/server.ts | 1 + .../remix-hydrogen/app/functions/_middleware.ts | 1 + .../e2e-tests/test-applications/remix-hydrogen/server.ts | 1 + .../sveltekit-cloudflare-pages/src/hooks.server.ts | 1 + .../tanstackstart-react-cloudflare/src/server.ts | 1 + 23 files changed, 29 insertions(+) diff --git a/dev-packages/e2e-tests/test-applications/astro-6-cf-workers/sentry.server.config.js b/dev-packages/e2e-tests/test-applications/astro-6-cf-workers/sentry.server.config.js index 8f1a839bc05f..c45704e24a6d 100644 --- a/dev-packages/e2e-tests/test-applications/astro-6-cf-workers/sentry.server.config.js +++ b/dev-packages/e2e-tests/test-applications/astro-6-cf-workers/sentry.server.config.js @@ -3,6 +3,7 @@ import handler from '@astrojs/cloudflare/entrypoints/server'; export default Sentry.withSentry( env => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-agent/worker/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-agent/worker/index.ts index fa795b85d8f0..fc92d0e2de74 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-agent/worker/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-agent/worker/index.ts @@ -10,6 +10,7 @@ class MyBaseAgent extends Agent { export const MyAgent = Sentry.instrumentDurableObjectWithSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, tracesSampleRate: 1, @@ -20,6 +21,7 @@ export const MyAgent = Sentry.instrumentDurableObjectWithSentry( export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, tunnel: `http://localhost:3031/`, tracesSampleRate: 1, diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-local-workers/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-local-workers/src/index.ts index 17f35553a0d2..827e60b65eae 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-local-workers/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-local-workers/src/index.ts @@ -22,6 +22,7 @@ class MyDurableObjectBase extends DurableObject { export const MyDurableObject = Sentry.instrumentDurableObjectWithSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tunnel: `http://localhost:3031/`, // proxy server @@ -33,6 +34,7 @@ export const MyDurableObject = Sentry.instrumentDurableObjectWithSentry( export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-mcp-agent/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-mcp-agent/src/index.ts index 30f22d2e39ee..cf15a2cdc008 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-mcp-agent/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-mcp-agent/src/index.ts @@ -49,6 +49,7 @@ class MyMCPAgentBase extends McpAgent> { export const MyMCPAgent = Sentry.instrumentDurableObjectWithSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', tunnel: `http://localhost:3031/`, @@ -64,6 +65,7 @@ export const MyMCPAgent = Sentry.instrumentDurableObjectWithSentry( export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', tunnel: `http://localhost:3031/`, diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-mcp/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-mcp/src/index.ts index 8e4e01d6f744..c715346306eb 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-mcp/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-mcp/src/index.ts @@ -17,6 +17,7 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-orchestrion-mysql/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-orchestrion-mysql/src/index.ts index 2cccb3c26c64..0fe3d1af327a 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-orchestrion-mysql/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-orchestrion-mysql/src/index.ts @@ -20,6 +20,7 @@ interface MysqlModule { export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', tunnel: 'http://localhost:3031/', diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-als/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-als/src/index.ts index f4110426ef99..0d18c070ec3d 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-als/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-als/src/index.ts @@ -4,6 +4,7 @@ import { MockLanguageModelV3 } from 'ai/test'; export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', tunnel: 'http://localhost:3031/', diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-compat/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-compat/src/index.ts index 91c6eae65f81..1cf5d617196f 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-compat/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-vercelai-v7-compat/src/index.ts @@ -4,6 +4,7 @@ import { MockLanguageModelV3 } from 'ai/test'; export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', tunnel: 'http://localhost:3031/', diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers-workflow-legacy/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workers-workflow-legacy/src/index.ts index 3d9e447a61a8..cd99841103dc 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers-workflow-legacy/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers-workflow-legacy/src/index.ts @@ -38,6 +38,7 @@ class RetryTestWorkflowBase extends WorkflowEntrypoint { export const RetryTestWorkflow = Sentry.instrumentWorkflowWithSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, tunnel: 'http://localhost:3031/', }), @@ -46,6 +47,7 @@ export const RetryTestWorkflow = Sentry.instrumentWorkflowWithSentry( export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, tunnel: 'http://localhost:3031/', }), diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts index 703483303c3f..7705f5ef0721 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts @@ -76,6 +76,7 @@ class MyDurableObjectBase extends DurableObject { export const MyDurableObject = Sentry.instrumentDurableObjectWithSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tunnel: `http://localhost:3031/`, // proxy server @@ -92,6 +93,7 @@ export const MyDurableObject = Sentry.instrumentDurableObjectWithSentry( export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workersentrypoint/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workersentrypoint/src/index.ts index 5edabc8e1b8b..7a3cd63896dc 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workersentrypoint/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workersentrypoint/src/index.ts @@ -63,6 +63,7 @@ class MyDurableObjectBase extends DurableObject { export const MyDurableObject = Sentry.instrumentDurableObjectWithSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tunnel: `http://localhost:3031/`, // proxy server @@ -109,6 +110,7 @@ class MyWorker extends WorkerEntrypoint { export default Sentry.withSentry( env => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', // dynamic sampling bias to keep transactions tunnel: `http://localhost:3031/`, // proxy server diff --git a/dev-packages/e2e-tests/test-applications/effect-3-browser/src/index.js b/dev-packages/e2e-tests/test-applications/effect-3-browser/src/index.js index 4e9cb70d6e44..5c598efe2794 100644 --- a/dev-packages/e2e-tests/test-applications/effect-3-browser/src/index.js +++ b/dev-packages/e2e-tests/test-applications/effect-3-browser/src/index.js @@ -9,6 +9,7 @@ import * as Effect from 'effect/Effect'; const LogLevelLive = Logger.minimumLogLevel(LogLevel.Debug); const AppLayer = Layer.mergeAll( Sentry.effectLayer({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, integrations: [ Sentry.browserTracingIntegration({ diff --git a/dev-packages/e2e-tests/test-applications/effect-3-node/src/app.ts b/dev-packages/e2e-tests/test-applications/effect-3-node/src/app.ts index 899adfb4aa98..18bc0e2d4f12 100644 --- a/dev-packages/e2e-tests/test-applications/effect-3-node/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/effect-3-node/src/app.ts @@ -10,6 +10,7 @@ import { createServer } from 'http'; const SentryLive = Layer.mergeAll( Sentry.effectLayer({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, environment: 'qa', debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/effect-4-browser/src/index.js b/dev-packages/e2e-tests/test-applications/effect-4-browser/src/index.js index 1748b4200ce1..7cc0d78ba969 100644 --- a/dev-packages/e2e-tests/test-applications/effect-4-browser/src/index.js +++ b/dev-packages/e2e-tests/test-applications/effect-4-browser/src/index.js @@ -9,6 +9,7 @@ import * as Effect from 'effect/Effect'; const AppLayer = Layer.mergeAll( Sentry.effectLayer({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, integrations: [ Sentry.browserTracingIntegration({ diff --git a/dev-packages/e2e-tests/test-applications/effect-4-node/src/app.ts b/dev-packages/e2e-tests/test-applications/effect-4-node/src/app.ts index 5ebfef33be77..25d5c21f41d3 100644 --- a/dev-packages/e2e-tests/test-applications/effect-4-node/src/app.ts +++ b/dev-packages/e2e-tests/test-applications/effect-4-node/src/app.ts @@ -11,6 +11,7 @@ import { createServer } from 'http'; const SentryLive = Layer.mergeAll( Sentry.effectLayer({ + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, environment: 'qa', debug: !!process.env.DEBUG, diff --git a/dev-packages/e2e-tests/test-applications/hono-4/src/entry.bun.ts b/dev-packages/e2e-tests/test-applications/hono-4/src/entry.bun.ts index 7c916c84ccb2..20026739bc5b 100644 --- a/dev-packages/e2e-tests/test-applications/hono-4/src/entry.bun.ts +++ b/dev-packages/e2e-tests/test-applications/hono-4/src/entry.bun.ts @@ -6,6 +6,7 @@ const app = new Hono(); app.use( sentry(app, { + traceLifecycle: 'static', dsn: process.env.E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/hono-4/src/entry.cloudflare.ts b/dev-packages/e2e-tests/test-applications/hono-4/src/entry.cloudflare.ts index cff225972278..7eca5f852320 100644 --- a/dev-packages/e2e-tests/test-applications/hono-4/src/entry.cloudflare.ts +++ b/dev-packages/e2e-tests/test-applications/hono-4/src/entry.cloudflare.ts @@ -6,6 +6,7 @@ const app = new Hono<{ Bindings: { E2E_TEST_DSN: string } }>(); app.use( sentry(app, env => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, environment: 'qa', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/hono-4/src/entry.deno.ts b/dev-packages/e2e-tests/test-applications/hono-4/src/entry.deno.ts index 15bd12a74111..029e0c95a414 100644 --- a/dev-packages/e2e-tests/test-applications/hono-4/src/entry.deno.ts +++ b/dev-packages/e2e-tests/test-applications/hono-4/src/entry.deno.ts @@ -6,6 +6,7 @@ const app = new Hono(); app.use( sentry(app, { + traceLifecycle: 'static', dsn: Deno.env.get('E2E_TEST_DSN'), environment: 'qa', dataCollection: {}, diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts index b430f97b1f44..7f6f5785d04b 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts @@ -34,6 +34,7 @@ export default { return wrapRequestHandler( { options: { + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: 'https://public@dsn.ingest.sentry.io/1337', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/remix-hydrogen/app/functions/_middleware.ts b/dev-packages/e2e-tests/test-applications/remix-hydrogen/app/functions/_middleware.ts index da0554ba8e56..1b096dfe162b 100644 --- a/dev-packages/e2e-tests/test-applications/remix-hydrogen/app/functions/_middleware.ts +++ b/dev-packages/e2e-tests/test-applications/remix-hydrogen/app/functions/_middleware.ts @@ -9,6 +9,7 @@ import * as build from '../build/server'; export const onRequest = [ (context: EventPluginContext) => sentryPagesPlugin({ + traceLifecycle: 'static', dsn: context.env.E2E_TEST_DSN, tracesSampleRate: 1.0, })(context), diff --git a/dev-packages/e2e-tests/test-applications/remix-hydrogen/server.ts b/dev-packages/e2e-tests/test-applications/remix-hydrogen/server.ts index 372e584e0a9e..0423e657d2bb 100644 --- a/dev-packages/e2e-tests/test-applications/remix-hydrogen/server.ts +++ b/dev-packages/e2e-tests/test-applications/remix-hydrogen/server.ts @@ -36,6 +36,7 @@ export default { return wrapRequestHandler( { options: { + traceLifecycle: 'static', environment: 'qa', // dynamic sampling bias to keep transactions dsn: 'https://public@dsn.ingest.sentry.io/1337', tracesSampleRate: 1.0, diff --git a/dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/src/hooks.server.ts b/dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/src/hooks.server.ts index d5067459d565..adb193c0ada8 100644 --- a/dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/src/hooks.server.ts +++ b/dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages/src/hooks.server.ts @@ -6,6 +6,7 @@ export const handleError = handleErrorWithSentry(); export const handle = sequence( initCloudflareSentryHandle({ + traceLifecycle: 'static', dsn: E2E_TEST_DSN, tracesSampleRate: 1.0, }), diff --git a/dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/src/server.ts b/dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/src/server.ts index 9ade4ffba0f2..1fcaac159709 100644 --- a/dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/src/server.ts +++ b/dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/src/server.ts @@ -4,6 +4,7 @@ import handler from '@tanstack/react-start/server-entry'; export default Sentry.withSentry( (env: Env) => ({ + traceLifecycle: 'static', dsn: env.E2E_TEST_DSN, tunnel: 'http://localhost:3031/', tracesSampleRate: 1.0,