mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-28 09:34:33 +01:00
Track queries with Sentry
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
import './precheck.ts';
|
||||
import './sentry.ts';
|
||||
import app from './app.ts';
|
||||
import { Conf } from './config.ts';
|
||||
import { Sentry } from './deps.ts';
|
||||
|
||||
// Sentry
|
||||
if (Conf.sentryDsn) {
|
||||
console.log('Sentry enabled');
|
||||
Sentry.init({
|
||||
dsn: Conf.sentryDsn,
|
||||
tracesSampleRate: 1.0,
|
||||
});
|
||||
}
|
||||
|
||||
Deno.serve(app.fetch);
|
||||
|
||||
Reference in New Issue
Block a user