Sentry stuff?

This commit is contained in:
Madeline
2022-10-30 11:33:27 +11:00
parent 61b9f824f4
commit 5a5a20c203
4 changed files with 15 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ import { green, bold, yellow } from "picocolors";
import { Config, initDatabase, BannedWords } from "@fosscord/util";
import * as Sentry from "@sentry/node";
import * as Tracing from "@sentry/tracing";
import * as Integrations from "@sentry/integrations";
const app = express();
const server = http.createServer();
@@ -73,6 +74,9 @@ async function main() {
new Sentry.Integrations.Http({ tracing: true }),
new Tracing.Integrations.Express({ app }),
new Tracing.Integrations.Mysql(),
new Integrations.RewriteFrames({
root: __dirname,
}),
],
tracesSampleRate: Config.get().sentry.traceSampleRate,
environment: Config.get().sentry.environment,