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
+2 -2
View File
@@ -178,11 +178,11 @@ app.whenReady().then(() => {
}
})
.catch((error) => {
dialog.showErrorBox('Ontime failed to reach server', error);
console.log('ERROR: Ontime failed to reach server', error);
});
})
.catch((error) => {
dialog.showErrorBox('Ontime failed to start', error);
console.log('ERROR: Ontime failed to start', error);
});
// recreate window if no others open
+1 -1
View File
@@ -12,7 +12,7 @@
"license": "AGPL-3.0-only",
"main": "main.js",
"devDependencies": {
"electron": "^21.1.0",
"electron": "^22.3.5",
"electron-builder": "^23.6.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
+1 -2
View File
@@ -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",
-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()],
});
}
+191 -555
View File
File diff suppressed because it is too large Load Diff