Skip to content

Commit 086bfa5

Browse files
committed
Default the Sentry OTel verification flags on in the e2e cloud stack
1 parent 03c1c2f commit 086bfa5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

e2e/setup/cloud.globalsetup.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ const bootLogFile = process.env.E2E_VERBOSE
2626
: resolve(RUNS_DIR, "cloud", "server-logs", "boot.log");
2727

2828
const optionalCloudEnv = (): Record<string, string> => {
29-
const env: Record<string, string> = {};
29+
// The Sentry/OTel correlation scenario always runs in this suite, so the
30+
// verification route and beforeSend payload logging default on here; the
31+
// env vars remain overridable for local runs against a different setup.
32+
const env: Record<string, string> = {
33+
SENTRY_OTEL_VERIFY: "true",
34+
SENTRY_OTEL_LOG_PAYLOAD: "true",
35+
};
3036
for (const key of ["SENTRY_DSN", "SENTRY_OTEL_LOG_PAYLOAD", "SENTRY_OTEL_VERIFY"]) {
3137
const value = process.env[key];
3238
if (value) env[key] = value;

0 commit comments

Comments
 (0)