fix: sentry hangs node process

This commit is contained in:
cv
2023-04-09 19:54:19 +02:00
parent d59c92219f
commit 3df17d172f
5 changed files with 195 additions and 563 deletions
-3
View File
@@ -1,5 +1,4 @@
import * as Sentry from '@sentry/node';
import { ProfilingIntegration } from '@sentry/profiling-node';
let shouldReport;
@@ -8,8 +7,6 @@ export function initSentry(doReport) {
Sentry.init({
dsn: 'https://ceb6abdce7374857bb50b65636cbaed1@o4504288369836032.ingest.sentry.io/4504288555565056',
tracesSampleRate: 1.0,
profilesSampleRate: 1.0, // Profiling sample rate is relative to tracesSampleRate
integrations: [new ProfilingIntegration()],
});
}