diff --git a/apps/server/src/common/sentry/instrument.ts b/apps/server/src/common/sentry/instrument.ts index 39870841..12472c2f 100644 --- a/apps/server/src/common/sentry/instrument.ts +++ b/apps/server/src/common/sentry/instrument.ts @@ -4,13 +4,9 @@ import { envPath } from '../helpers'; import * as dotenv from 'dotenv'; dotenv.config({ path: envPath }); -if (process.env.SENTRY_DSN) { - Sentry.init({ - dsn: process.env.SENTRY_DSN, - integrations: [ - nodeProfilingIntegration(), - ], - tracesSampleRate: 1.0, - profilesSampleRate: 1.0, - }); -} +Sentry.init({ + dsn: process.env.SENTRY_DSN, + integrations: [nodeProfilingIntegration()], + tracesSampleRate: 1.0, + profilesSampleRate: 1.0, +});