mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-29 03:04:25 +01:00
12 lines
213 B
TypeScript
12 lines
213 B
TypeScript
import { Conf } from './config.ts';
|
|
import { Sentry } from './deps.ts';
|
|
|
|
// Sentry
|
|
if (Conf.sentryDsn) {
|
|
console.log('Sentry enabled');
|
|
Sentry.init({
|
|
dsn: Conf.sentryDsn,
|
|
tracesSampleRate: .2,
|
|
});
|
|
}
|