aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/Sentry.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common/Sentry.ts')
-rw-r--r--src/lib/common/Sentry.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/lib/common/Sentry.ts b/src/lib/common/Sentry.ts
deleted file mode 100644
index 2792203..0000000
--- a/src/lib/common/Sentry.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { RewriteFrames } from '@sentry/integrations';
-import * as SentryNode from '@sentry/node';
-import { Integrations } from '@sentry/node';
-import type { Config } from '../../../config/Config.js';
-
-export class Sentry {
- public constructor(rootdir: string, config: Config) {
- if (config.credentials.sentryDsn === null) throw TypeError('sentryDsn cannot be null');
-
- SentryNode.init({
- dsn: config.credentials.sentryDsn,
- environment: config.environment,
- tracesSampleRate: 1.0,
- integrations: [
- new RewriteFrames({
- root: rootdir
- }),
- new Integrations.OnUnhandledRejection({
- mode: 'none'
- })
- ]
- });
- }
-}