Skip to content

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.

chore: error detail is updated

Palash gupta4b591fabf746
diff --git a/frontend/src/pages/ErrorDetails/index.tsx b/frontend/src/pages/ErrorDetails/index.tsx
index cd54cba097..5f9e6c8e9f 100644
--- a/frontend/src/pages/ErrorDetails/index.tsx
+++ b/frontend/src/pages/ErrorDetails/index.tsx
@@ -75,14 +75,17 @@ function ErrorDetails(): JSX.Element {
},
);
+ // if errorType and serviceName is null redirecting to the ALL_ERROR page not now
if (errorType === null || serviceName === null) {
return <Redirect to={ROUTES.ALL_ERROR} />;
}
+ // when the api is in loading state
if (status === 'loading' || ErrorIdStatus === 'loading') {
return <Spinner tip="Loading.." />;
}
+ // if any error occurred while loading
if (status === 'error' || ErrorIdStatus === 'error') {
return (
<Typography>
@@ -91,9 +94,10 @@ function ErrorDetails(): JSX.Element {
);
}
+ // if API is successfully but there is an error
if (
- (status === 'success' && data?.statusCode !== 200) ||
- (ErrorIdStatus === 'success' && errorIdPayload.statusCode !== 200)
+ (status === 'success' && data?.statusCode >= 400) ||
+ (ErrorIdStatus === 'success' && errorIdPayload.statusCode >= 400)
) {
return <Typography>{data?.error || defaultError}</Typography>;
}