From 3ad73b7c7ec0ceb8079f15a42850f64d88677a15 Mon Sep 17 00:00:00 2001 From: Michael Della Bitta Date: Tue, 31 Dec 2024 17:44:53 -0500 Subject: [PATCH] Added support for sentry environment config via env var. --- src/instrumentation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/instrumentation.ts b/src/instrumentation.ts index cfda644..23ba6fc 100644 --- a/src/instrumentation.ts +++ b/src/instrumentation.ts @@ -7,6 +7,7 @@ import { init } from "@sentry/node"; init({ debug: process.env.SENTRY_DEBUG === "true", dsn: process.env.SENTRY_DSN, + environment: process.env.SENTRY_ENVIRONMENT ?? "development", integrations: [ // Add our Profiling integration nodeProfilingIntegration(),