ditto/src/sentry.ts

12 lines
214 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: 1.0,
});
}