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: remove requirement of exceptionType and serviceName from errorDetail page URL (#1400)
Vishal Sharmac90e9ffa3401
diff --git a/frontend/src/container/AllError/index.tsx b/frontend/src/container/AllError/index.tsxindex eef4fca88b..253af7dfe1 100644--- a/frontend/src/container/AllError/index.tsx+++ b/frontend/src/container/AllError/index.tsx@@ -101,9 +101,7 @@ function AllErrors(): JSX.Element {render: (value, record): JSX.Element => (<Tooltip overlay={(): JSX.Element => value}><Link- to={`${ROUTES.ERROR_DETAIL}?serviceName=${- record.serviceName- }&exceptionType=${record.exceptionType}&groupId=${+ to={`${ROUTES.ERROR_DETAIL}?groupId=${record.groupID}×tamp=${getNanoSeconds(record.lastSeen)}`}>diff --git a/frontend/src/container/ErrorDetails/index.tsx b/frontend/src/container/ErrorDetails/index.tsxindex ea8a3c2e3e..a200744890 100644--- a/frontend/src/container/ErrorDetails/index.tsx+++ b/frontend/src/container/ErrorDetails/index.tsx@@ -90,11 +90,9 @@ function ErrorDetails(props: ErrorDetailsProps): JSX.Element {}history.replace(- `${history.location.pathname}?${urlKey.serviceName}=${serviceName}&${- urlKey.exceptionType- }=${errorType}&groupId=${idPayload.groupID}×tamp=${getNanoSeconds(- timespamp,- )}&errorId=${id}`,+ `${history.location.pathname}?&groupId=${+ idPayload.groupID+ }×tamp=${getNanoSeconds(timespamp)}&errorId=${id}`,);} catch (error) {notification.error({diff --git a/frontend/src/pages/ErrorDetails/index.tsx b/frontend/src/pages/ErrorDetails/index.tsxindex 25bffe874d..348391b741 100644--- a/frontend/src/pages/ErrorDetails/index.tsx+++ b/frontend/src/pages/ErrorDetails/index.tsx@@ -23,8 +23,6 @@ function ErrorDetails(): JSX.Element {const { search } = useLocation();const params = useMemo(() => new URLSearchParams(search), [search]);- const serviceName = params.get(urlKey.serviceName);- const expectionType = params.get(urlKey.exceptionType);const groupId = params.get(urlKey.groupId);const errorId = params.get(urlKey.errorId);const timestamp = params.get(urlKey.timestamp);@@ -50,34 +48,17 @@ function ErrorDetails(): JSX.Element {},);- const { data, status } = useQuery(- [- 'expectionType',- expectionType,- 'serviceName',- serviceName,- maxTime,- minTime,- groupId,- ],- {- queryFn: () =>- getByErrorType({- groupID: groupId || '',- timestamp: timestamp || '',- }),- enabled:- !!expectionType && !!serviceName && !!groupId && IdStatus !== 'success',- },- );+ const { data, status } = useQuery([maxTime, minTime, groupId], {+ queryFn: () =>+ getByErrorType({+ groupID: groupId || '',+ timestamp: timestamp || '',+ }),+ enabled: !!groupId && IdStatus !== 'success',+ });// if errorType and serviceName is null redirecting to the ALL_ERROR page not now- if (- serviceName === null ||- expectionType === null ||- groupId === null ||- timestamp === null- ) {+ if (groupId === null || timestamp === null) {return <Redirect to={ROUTES.ALL_ERROR} />;}