fix sentry

This commit is contained in:
Philipinho
2025-02-27 14:44:28 +00:00
parent fe5066c7b5
commit 3cfb17bb62

View File

@ -4,13 +4,9 @@ import { envPath } from '../helpers';
import * as dotenv from 'dotenv'; import * as dotenv from 'dotenv';
dotenv.config({ path: envPath }); dotenv.config({ path: envPath });
if (process.env.SENTRY_DSN) { Sentry.init({
Sentry.init({
dsn: process.env.SENTRY_DSN, dsn: process.env.SENTRY_DSN,
integrations: [ integrations: [nodeProfilingIntegration()],
nodeProfilingIntegration(),
],
tracesSampleRate: 1.0, tracesSampleRate: 1.0,
profilesSampleRate: 1.0, profilesSampleRate: 1.0,
}); });
}