From 876e0537b9e1fc1bee69cf0ad0597ecd82b829d6 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 10 May 2026 11:07:47 +0300 Subject: [PATCH] Filter out 3rd party errors --- app/entry.client.tsx | 8 +++++++- vite.config.ts | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/entry.client.tsx b/app/entry.client.tsx index 6c2cd716c..80b681590 100644 --- a/app/entry.client.tsx +++ b/app/entry.client.tsx @@ -15,7 +15,13 @@ const tracing = Sentry.reactRouterTracingIntegration({ Sentry.init({ dsn: import.meta.env.VITE_SENTRY_DSN, sendDefaultPii: false, - integrations: [tracing], + integrations: [ + tracing, + Sentry.thirdPartyErrorFilterIntegration({ + filterKeys: ["sendou-ink"], + behaviour: "drop-error-if-contains-third-party-frames", + }), + ], enableLogs: true, tracesSampleRate: 0.1, tracePropagationTargets: [/^\//], diff --git a/vite.config.ts b/vite.config.ts index 28ad9de8c..cd1ef7a71 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -46,6 +46,9 @@ export default defineConfig((config) => { project: process.env.SENTRY_PROJECT, authToken: process.env.SENTRY_AUTH_TOKEN, telemetry: false, + unstable_sentryVitePluginOptions: { + applicationKey: "sendou-ink", + }, }, config, ),