diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-26 22:20:52 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-26 22:20:52 -0400 |
| commit | a1ab06dcfccef90192b90910aecdddbc505eca00 (patch) | |
| tree | d2938e97ac06fc62fe17f5ec1fa4d927dc2922a6 /src/lib/common | |
| parent | 3aeddeccc3765e532f6f965612873ab4a03bddd1 (diff) | |
| download | tanzanite-a1ab06dcfccef90192b90910aecdddbc505eca00.tar.gz tanzanite-a1ab06dcfccef90192b90910aecdddbc505eca00.tar.bz2 tanzanite-a1ab06dcfccef90192b90910aecdddbc505eca00.zip | |
sentry stuff
Diffstat (limited to 'src/lib/common')
| -rw-r--r-- | src/lib/common/Sentry.ts | 12 |
1 files changed, 12 insertions, 0 deletions
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 + }); + } +} |
