mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
fix: sentry version
This commit is contained in:
@@ -7,6 +7,7 @@ import { onUnexpectedError } from '@config/error.config';
|
||||
import { Logger } from '@config/logger.config';
|
||||
import { ROOT_DIR } from '@config/path.config';
|
||||
import * as Sentry from '@sentry/node';
|
||||
import { nodeProfilingIntegration } from '@sentry/profiling-node';
|
||||
import { ServerUP } from '@utils/server-up';
|
||||
import axios from 'axios';
|
||||
import compression from 'compression';
|
||||
@@ -29,10 +30,11 @@ async function bootstrap() {
|
||||
dsn: dsn,
|
||||
environment: process.env.NODE_ENV || 'development',
|
||||
tracesSampleRate: 1.0,
|
||||
integrations: [nodeProfilingIntegration()],
|
||||
profilesSampleRate: 1.0,
|
||||
});
|
||||
app.use(Sentry.Handlers.requestHandler());
|
||||
app.use(Sentry.Handlers.tracingHandler());
|
||||
app.use(Sentry.Handlers.errorHandler());
|
||||
|
||||
Sentry.setupExpressErrorHandler(app);
|
||||
}
|
||||
|
||||
let providerFiles: ProviderFiles = null;
|
||||
|
||||
Reference in New Issue
Block a user