Track queries with Sentry

This commit is contained in:
Alex Gleason
2023-12-06 14:49:01 -06:00
parent 709675754c
commit c532f54ea6
3 changed files with 24 additions and 17 deletions

View File

@@ -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);