Skip to content

Commit

Permalink
web: Filter some sentry errors
Browse files Browse the repository at this point in the history
  • Loading branch information
schneefux committed Mar 20, 2024
1 parent 9da4ba1 commit 620ac2f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/pages/tier-list/mode/_mode/map/_map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ export default defineComponent({
const lightboxOpen = ref(false)
const aiReport = useAsync(async () => await $api.report.byModeMap.query({
const aiReport = useAsync(() => $api.report.byModeMap.query({
localeIso: i18n.locale.value,
mode: mode.value,
map: map.value,
}), computed(() => `ai-report-${i18n.locale.value}-${mode.value}-${map.value}`))
}).catch(() => null), computed(() => `ai-report-${i18n.locale.value}-${mode.value}-${map.value}`))
const { trackInteraction } = useTrackScroll('map')
Expand Down
3 changes: 3 additions & 0 deletions web/renderer/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export function initSentry(dsn: string, app: App<Element>, router?: Router) {
'SYNC.JS',
'ox_esp',
'Tyche blocked',
// ignore errors that are not actionable
'Already on path:',
'Unable to preload CSS',
],
allowUrls: [/https?:\/\/brawltime\.ninja/],
replaysSessionSampleRate: 0.0005,
Expand Down
9 changes: 9 additions & 0 deletions web/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ async function startServer() {
levels: ['error', 'assert'],
}),
],
ignoreErrors: [
// ignore errors that are not actionable
'HeadersTimeoutError',
'TimeoutError',
"it didn't finish after 30 seconds", // vike timeout
'You stumbled upon a bug in Vike',
'No such label', // console.time
'mraid.js', // triggered by ads
],
beforeSend(event, hint) {
const error = hint.originalException as any

Expand Down

0 comments on commit 620ac2f

Please sign in to comment.