From a9f0997702fc72eb2d3a9ceda1361b621a50caa0 Mon Sep 17 00:00:00 2001 From: huhuanming Date: Wed, 27 Nov 2024 18:23:29 +0800 Subject: [PATCH] Update basicOptions.ts --- packages/shared/src/modules3rdParty/sentry/basicOptions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/shared/src/modules3rdParty/sentry/basicOptions.ts b/packages/shared/src/modules3rdParty/sentry/basicOptions.ts index 554b6abd7b2..ebe1ae3dd62 100644 --- a/packages/shared/src/modules3rdParty/sentry/basicOptions.ts +++ b/packages/shared/src/modules3rdParty/sentry/basicOptions.ts @@ -62,6 +62,7 @@ export const basicOptions: BrowserOptions = { } } } + // Filter out duplicate error messages if (Array.isArray(event.breadcrumbs)) { event.breadcrumbs = event.breadcrumbs.filter( (e) => e.category !== 'sentry.event' && e.level !== 'error',