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): drop benign aborted/cancelled requests from error reporting (#12495)
Aditya Singh1a293652f796
diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex b1cd62cd6b..4f707959be 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -376,7 +376,19 @@ function App(): JSX.Element {tracesSampleRate: 0, // Ref: https://github.com/SigNoz/platform-pod/issues/2393#issuecomment-4603658055replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.- beforeSend(event) {+ beforeSend(event, hint) {+ const error = hint?.originalException as+ | { name?: string; code?: string | number }+ | undefined;++ // Ignore benign aborted/cancelled requests (axios + fetch).+ if (error?.code === 'ERR_CANCELED' || error?.code === 'ECONNABORTED') {+ return null;+ }+ if (error?.name === 'AbortError') {+ return null;+ }+// Drop the event if its level is 'warning' or 'info'if (event.level === 'warning' || event.level === 'info') {return null;