summary refs log tree commit diff
path: root/src/util/util/Sentry.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util/Sentry.ts')
-rw-r--r--src/util/util/Sentry.ts19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/util/util/Sentry.ts b/src/util/util/Sentry.ts
index 74a23a1e..b51100f1 100644
--- a/src/util/util/Sentry.ts
+++ b/src/util/util/Sentry.ts
@@ -29,8 +29,7 @@ let errorHandlersUsed = false;
 export const Sentry = {
 	/** Call BEFORE registering your routes */
 	init: async (app?: express.Application) => {
-		const { enabled, endpoint, traceSampleRate, environment } =
-			Config.get().sentry;
+		const { enabled, endpoint, traceSampleRate, environment } = Config.get().sentry;
 		if (!enabled) return;
 
 		if (SentryNode.getCurrentHub().getClient()) return; // we've already initialised sentry
@@ -40,8 +39,8 @@ export const Sentry = {
 		if (traceSampleRate >= 0.8) {
 			console.log(
 				`[Sentry] ${yellow(
-					"Your sentry trace sampling rate is >= 80%. For large loads, this may degrade performance.",
-				)}`,
+					"Your sentry trace sampling rate is >= 80%. For large loads, this may degrade performance."
+				)}`
 			);
 		}
 
@@ -61,7 +60,7 @@ export const Sentry = {
 			integrations.push(
 				new SentryNode.Integrations.Express({
 					app,
-				}),
+				})
 			);
 
 		SentryNode.init({
@@ -94,14 +93,8 @@ export const Sentry = {
 					// Filter breadcrumbs that we don't care about
 					if (x.message?.includes("identified as")) return false;
 					if (x.message?.includes("[WebSocket] closed")) return false;
-					if (
-						x.message?.includes(
-							"Got Resume -> cancel not implemented",
-						)
-					)
-						return false;
-					if (x.message?.includes("[Gateway] New connection from"))
-						return false;
+					if (x.message?.includes("Got Resume -> cancel not implemented")) return false;
+					if (x.message?.includes("[Gateway] New connection from")) return false;
 
 					return true;
 				});