ditto/src/sentry.ts

12 lines
213 B
TypeScript
Raw Normal View History

2023-12-06 20:49:01 +00:00
import { Conf } from './config.ts';
import { Sentry } from './deps.ts';
// Sentry
if (Conf.sentryDsn) {
console.log('Sentry enabled');
Sentry.init({
dsn: Conf.sentryDsn,
tracesSampleRate: .2,
2023-12-06 20:49:01 +00:00
});
}