diff options
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 + }); + } +} |