From a2c5823d7a2c528d986c1174ae33bd887435f586 Mon Sep 17 00:00:00 2001 From: "dhrumil.parekh@sentry.io" Date: Thu, 13 Aug 2026 15:07:34 +0000 Subject: [PATCH] fix(client): Ignore Algolia Insights NetworkError from Firefox ETP --- src/instrumentation-client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/instrumentation-client.ts b/src/instrumentation-client.ts index 99b7cda814a9d..7380c4e3be148 100644 --- a/src/instrumentation-client.ts +++ b/src/instrumentation-client.ts @@ -4,7 +4,9 @@ Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, // Ignore errors injected by Brave/Firefox iOS browser scripts (third-party browser noise) - ignoreErrors: [/__firefox__/, /DarkReader/], + // Also ignore NetworkErrors from insights.algolia.io — these are blocked by Firefox's + // Enhanced Tracking Protection and ad-blockers when Algolia click analytics are fired. + ignoreErrors: [/__firefox__/, /DarkReader/, /NetworkError.*insights\.algolia\.io/], // Adjust this value in production, or use tracesSampler for greater control tracesSampleRate: 0.3,