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: added safety check on uplot-xaxis logic to solve sentry issue (#6869)
SagarRajput-7af6b54aeb4d1
diff --git a/frontend/src/lib/uPlotLib/utils/getUplotChartData.ts b/frontend/src/lib/uPlotLib/utils/getUplotChartData.tsindex 695b2c07de..1e224da05a 100644--- a/frontend/src/lib/uPlotLib/utils/getUplotChartData.ts+++ b/frontend/src/lib/uPlotLib/utils/getUplotChartData.ts@@ -9,10 +9,12 @@ import { generateColor } from './generateColor';function getXAxisTimestamps(seriesList: QueryData[]): number[] {const timestamps = new Set();- seriesList.forEach((series: { values: [number, string][] }) => {- series.values.forEach((value) => {- timestamps.add(value[0]);- });+ seriesList.forEach((series: { values?: [number, string][] }) => {+ if (series?.values) {+ series.values.forEach((value) => {+ timestamps.add(value[0]);+ });+ }});const timestampsArr: number[] | unknown[] = Array.from(timestamps) || [];