mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
12 lines
219 B
TypeScript
12 lines
219 B
TypeScript
import * as Sentry from '@sentry/deno';
|
|
|
|
import { Conf } from '@/config.ts';
|
|
|
|
// Sentry
|
|
if (Conf.sentryDsn) {
|
|
console.log('Sentry enabled');
|
|
Sentry.init({
|
|
dsn: Conf.sentryDsn,
|
|
tracesSampleRate: 1.0,
|
|
});
|
|
}
|