diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 19:00:40 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 19:00:40 +1100 |
commit | f59ec466de05b9cd1090f55929367a192b3ce979 (patch) | |
tree | e90fab9f1a958e1a630004d2a6df8bfa9f354777 /src/bundle/Server.ts | |
parent | user validation stuff (diff) | |
download | server-f59ec466de05b9cd1090f55929367a192b3ce979.tar.xz |
comments and such
Diffstat (limited to 'src/bundle/Server.ts')
-rw-r--r-- | src/bundle/Server.ts | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/bundle/Server.ts b/src/bundle/Server.ts index 1ae9511c..3ceebc06 100644 --- a/src/bundle/Server.ts +++ b/src/bundle/Server.ts @@ -54,12 +54,14 @@ async function main() { Sentry.addGlobalEventProcessor((event, hint) => { if (event.transaction) { + // Rewrite things that look like IDs to `:id` for sentry event.transaction = event.transaction .split("/") .map((x) => (!parseInt(x) ? x : ":id")) .join("/"); } + // TODO: does this even do anything? delete event.request?.cookies; if (event.request?.headers) { delete event.request.headers["X-Real-Ip"]; @@ -70,16 +72,11 @@ async function main() { if (event.breadcrumbs) { event.breadcrumbs = event.breadcrumbs.filter((x) => { + // 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; }); |