From 01821a65fa3aba20bc499a8b235f00c4845cf7f5 Mon Sep 17 00:00:00 2001 From: JPeer264 Date: Mon, 7 Sep 2026 21:40:48 +0200 Subject: [PATCH] test(cloudflare): Port the http-server integration suites to span streaming Removes the `traceLifecycle: 'static'` pin from the five `suites/integrations/http-server*` suites. Nothing else changes. These suites cover request body capture, so they assert on the event the worker sends and never on a transaction. None of them sets `tracesSampleRate`, so the pin only ever selected a trace lifecycle for a client that emits no spans either way. Co-Authored-By: Claude Opus 5 (1M context) --- .../suites/integrations/http-server-disabled/index.ts | 1 - .../suites/integrations/http-server-filtered/index.ts | 1 - .../suites/integrations/http-server-ignore/index.ts | 1 - .../suites/integrations/http-server-small/index.ts | 1 - .../suites/integrations/http-server/index.ts | 1 - 5 files changed, 5 deletions(-) diff --git a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-disabled/index.ts b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-disabled/index.ts index 3cf0ae743ecd..05ba6b6a7c71 100644 --- a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-disabled/index.ts +++ b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-disabled/index.ts @@ -7,7 +7,6 @@ interface Env { export default Sentry.withSentry( (env: Env) => ({ dsn: env.SENTRY_DSN, - traceLifecycle: 'static', integrations: [Sentry.httpServerIntegration({ maxRequestBodySize: 'none' })], }), { diff --git a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-filtered/index.ts b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-filtered/index.ts index 01ca73ed8a98..a5aea20ed2d0 100644 --- a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-filtered/index.ts +++ b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-filtered/index.ts @@ -7,7 +7,6 @@ interface Env { export default Sentry.withSentry( (env: Env) => ({ dsn: env.SENTRY_DSN, - traceLifecycle: 'static', integrations: integrations => integrations.filter(i => i.name !== 'HttpServer'), }), { diff --git a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-ignore/index.ts b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-ignore/index.ts index 2f8a2f54a176..44bd88fe8044 100644 --- a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-ignore/index.ts +++ b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-ignore/index.ts @@ -7,7 +7,6 @@ interface Env { export default Sentry.withSentry( (env: Env) => ({ dsn: env.SENTRY_DSN, - traceLifecycle: 'static', integrations: [ Sentry.httpServerIntegration({ ignoreRequestBody: url => url.includes('/health') || url.includes('/upload'), diff --git a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-small/index.ts b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-small/index.ts index 3096ab973b02..b4257939cfaf 100644 --- a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-small/index.ts +++ b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server-small/index.ts @@ -7,7 +7,6 @@ interface Env { export default Sentry.withSentry( (env: Env) => ({ dsn: env.SENTRY_DSN, - traceLifecycle: 'static', integrations: [Sentry.httpServerIntegration({ maxRequestBodySize: 'small' })], }), { diff --git a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server/index.ts b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server/index.ts index e93051774b13..367a12f4e37f 100644 --- a/dev-packages/cloudflare-integration-tests/suites/integrations/http-server/index.ts +++ b/dev-packages/cloudflare-integration-tests/suites/integrations/http-server/index.ts @@ -8,7 +8,6 @@ export default Sentry.withSentry( (env: Env) => ({ dsn: env.SENTRY_DSN, attachStacktrace: false, - traceLifecycle: 'static', }), { async fetch(request, _env, _ctx) {