aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/Sentry.ts
blob: 2040536bccb88cfbe59a7fcc4fbf119f6fcc3a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
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
		});
	}
}