ditto/src/sentry.ts

13 lines
219 B
TypeScript
Raw Normal View History

import * as Sentry from '@sentry/deno';
import { Conf } from '@/config.ts';
2023-12-06 20:49:01 +00:00
// 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
});
}