SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix(sentry): stop reporting self-healed chunk load failures (#12440)
Pandeybb3f5818c107
diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex 612f0baf47..b1cd62cd6b 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -354,6 +354,16 @@ function App(): JSX.Element {tunnel: window.signozBootData.settings.sentry.tunnel,environment: process.env.ENVIRONMENT,release: process.env.VERSION,+ // A tab that outlived a deploy requests hashed assets the new build no longer+ // has. `lazyRetry` recovers by reloading once, so this class is not worth+ // reporting. The stylesheet message is Vite's own; the module ones are the+ // same failure worded differently by Chromium, Firefox and Safari.+ ignoreErrors: [+ /Unable to preload CSS for/,+ /Failed to fetch dynamically imported module/,+ /error loading dynamically imported module/,+ /Importing a module script failed/,+ ],integrations: [// Kept for the `transaction` tag used in routing, even though// tracing is disabled. Ref: https://github.com/SigNoz/platform-pod/issues/2393#issuecomment-4603658055diff --git a/frontend/src/utils/lazyWithRetries.ts b/frontend/src/utils/lazyWithRetries.tsindex 57df8ec7fb..fdb514855d 100644--- a/frontend/src/utils/lazyWithRetries.ts+++ b/frontend/src/utils/lazyWithRetries.ts@@ -16,9 +16,14 @@ export const lazyRetry = (componentImport: ComponentImport): Promise<any> =>resolve(component);}).catch((error: Error) => {- if (!hasRefreshed) {- setSessionStorageApi(SESSIONSTORAGE.RETRY_LAZY_REFRESHED, 'true');-+ // A stale chunk reference right after a deploy self-heals: one reload pulls a+ // fresh index.html with the new hashed asset names. That reload is only+ // once-only if the flag persists, so a failed write (sessionStorage blocked in+ // an iframe, storage disabled) must not reload at all — it would loop forever.+ if (+ !hasRefreshed &&+ setSessionStorageApi(SESSIONSTORAGE.RETRY_LAZY_REFRESHED, 'true')+ ) {window.location.reload();}