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,
2024-03-27 23:22:50 +00:00
tracesSampleRate: 1.0,
2023-12-06 20:49:01 +00:00
});
}