mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-13 14:46:10 -05:00
Filter out 3rd party errors
This commit is contained in:
@@ -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: [/^\//],
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user