Skip to content

Commit c330f67

Browse files
committed
refactor: 🧑‍💻 Improve Sentry integration (hopefully)
1 parent 790e729 commit c330f67

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

instrument.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ Sentry.init({
1414
Sentry.onUnhandledRejectionIntegration(),
1515
Sentry.fsIntegration(),
1616
Sentry.postgresIntegration(),
17+
Sentry.contextLinesIntegration(),
18+
Sentry.requestDataIntegration(),
1719
],
1820
});

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Client, GatewayIntentBits, Partials } from "discord.js";
33
import { config } from "./Config.js";
44
import { setupBranding } from "./util/branding.js";
55
import "./util/random.js";
6-
import * as Sentry from "@sentry/node";
6+
import * as Sentry from "@sentry/bun";
77
import * as schedule from "node-schedule";
88
import { startHealthCheck } from "./healthcheck.js";
99
import { logger } from "./logging.js";

src/sentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Sentry from "@sentry/node";
1+
import * as Sentry from "@sentry/bun";
22
import type { Client } from "discord.js";
33
import { logger } from "./logging.js";
44

0 commit comments

Comments
 (0)