Evo / src /utils /instrumentSentry.ts
usofn8n's picture
Add Evolution API files
80f4e3d
import { configService, Sentry as SentryConfig } from '@config/env.config';
import * as Sentry from '@sentry/node';
const sentryConfig = configService.get<SentryConfig>('SENTRY');
if (sentryConfig.DSN) {
Sentry.init({
dsn: sentryConfig.DSN,
environment: process.env.NODE_ENV || 'development',
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
});
}