mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 21:24:11 +00:00
fix: sentry hangs node process
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
"exports": "./src/index.js",
|
||||
"dependencies": {
|
||||
"@sentry/node": "^7.47.0",
|
||||
"@sentry/profiling-node": "^0.3.0",
|
||||
"@sentry/tracing": "^7.46.0",
|
||||
"@sentry/tracing": "^7.47.0",
|
||||
"body-parser": "^1.20.0",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.0.1",
|
||||
|
||||
@@ -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()],
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user