2024-04-30 18:01:43 +00:00
|
|
|
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
|
|
|
});
|
|
|
|
}
|