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
feat: corrected the handling of relativeTime as null in alertHistory page (#6392)
SagarRajput-78403a3362d7c
diff --git a/frontend/src/pages/AlertDetails/hooks.tsx b/frontend/src/pages/AlertDetails/hooks.tsxindex 8a630a6374..b4d7674c67 100644--- a/frontend/src/pages/AlertDetails/hooks.tsx+++ b/frontend/src/pages/AlertDetails/hooks.tsx@@ -57,8 +57,11 @@ export const useAlertHistoryQueryParams = (): {const startTime = params.get(QueryParams.startTime);const endTime = params.get(QueryParams.endTime);+ const relativeTimeParam = params.get(QueryParams.relativeTime);+const relativeTime =- params.get(QueryParams.relativeTime) ?? RelativeTimeMap['6hr'];+ (relativeTimeParam === 'null' ? null : relativeTimeParam) ??+ RelativeTimeMap['6hr'];const intStartTime = parseInt(startTime || '0', 10);const intEndTime = parseInt(endTime || '0', 10);