MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / optionalCloudEnv

Function optionalCloudEnv

e2e/setup/cloud.globalsetup.ts:28–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 : resolve(RUNS_DIR, "cloud", "server-logs", "boot.log");
27
28const 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
43export default async function setup(): Promise<(() => Promise<void>) | void> {
44 if (process.env.E2E_CLOUD_URL) {

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected