From a1ab06dcfccef90192b90910aecdddbc505eca00 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 26 Oct 2021 22:20:52 -0400 Subject: sentry stuff --- src/lib/common/Sentry.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/lib/common/Sentry.ts (limited to 'src/lib/common') diff --git a/src/lib/common/Sentry.ts b/src/lib/common/Sentry.ts new file mode 100644 index 0000000..2040536 --- /dev/null +++ b/src/lib/common/Sentry.ts @@ -0,0 +1,12 @@ +import * as SentryNode from '@sentry/node'; +import config from './../../config/options'; + +export class Sentry { + public constructor() { + SentryNode.init({ + dsn: config.credentials.sentryDsn, + environment: config.environment, + tracesSampleRate: 1.0 + }); + } +} -- cgit