From 3cfb17bb628365e331958b83b6fc22e71cb64d4c Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Thu, 27 Feb 2025 14:44:28 +0000 Subject: [PATCH] fix sentry --- apps/server/src/common/sentry/instrument.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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, +});