| 26 | : resolve(RUNS_DIR, "cloud", "server-logs", "boot.log"); |
| 27 | |
| 28 | const optionalCloudEnv = (): 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 | }; |
| 36 | for (const key of ["SENTRY_DSN", "SENTRY_OTEL_LOG_PAYLOAD", "SENTRY_OTEL_VERIFY"]) { |
| 37 | const value = process.env[key]; |
| 38 | if (value) env[key] = value; |
| 39 | } |
| 40 | return env; |
| 41 | }; |
| 42 | |
| 43 | export default async function setup(): Promise<(() => Promise<void>) | void> { |
| 44 | if (process.env.E2E_CLOUD_URL) { |