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: logout the user if api is not successfull
Palash guptab21a2707d34b
diff --git a/frontend/src/AppRoutes/Private.tsx b/frontend/src/AppRoutes/Private.tsxindex 3e97adec58..436b184ca4 100644--- a/frontend/src/AppRoutes/Private.tsx+++ b/frontend/src/AppRoutes/Private.tsx@@ -2,6 +2,7 @@import { notification } from 'antd';import getLocalStorageApi from 'api/browser/localstorage/get';import loginApi from 'api/user/login';+import { Logout } from 'api/utils';import Spinner from 'components/Spinner';import { LOCALSTORAGE } from 'constants/localStorage';import ROUTES from 'constants/routes';@@ -103,7 +104,7 @@ function PrivateRoute({ children }: PrivateRouteProps): JSX.Element {history.push(ROUTES.UN_AUTHORIZED);}} else {- history.push(ROUTES.SOMETHING_WENT_WRONG);+ Logout();notification.error({message: response.error || t('something_went_wrong'),