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 checks for buildgraph functions and revert upgrades (#7215)
SagarRajput-752693eb53e1f
diff --git a/frontend/package.json b/frontend/package.jsonindex 6c8140f456..af78690982 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -250,10 +250,6 @@"body-parser": "1.20.3","http-proxy-middleware": "3.0.3","cross-spawn": "7.0.5",- "cookie": "^0.7.1",- "react-router/path-to-regexp": "^1.7.0",- "webpack-dev-server/path-to-regexp": "^1.7.0",- "express/path-to-regexp": "^1.7.0",- "@types/webpack-dev-server/path-to-regexp": "^1.7.0"+ "cookie": "^0.7.1"}}diff --git a/frontend/src/container/NewDashboard/DashboardVariablesSelection/util.ts b/frontend/src/container/NewDashboard/DashboardVariablesSelection/util.tsindex 3b79111bfa..b0a76e934b 100644--- a/frontend/src/container/NewDashboard/DashboardVariablesSelection/util.ts+++ b/frontend/src/container/NewDashboard/DashboardVariablesSelection/util.ts@@ -106,7 +106,7 @@ export const buildDependencyGraph = (Object.keys(dependencies).forEach((node) => {if (!inDegree[node]) inDegree[node] = 0;if (!adjList[node]) adjList[node] = [];- dependencies[node].forEach((child) => {+ dependencies[node]?.forEach((child) => {if (!inDegree[child]) inDegree[child] = 0;inDegree[child]++;adjList[node].push(child);@@ -126,13 +126,13 @@ export const buildDependencyGraph = (}topologicalOrder.push(current);- adjList[current].forEach((neighbor) => {+ adjList[current]?.forEach((neighbor) => {inDegree[neighbor]--;if (inDegree[neighbor] === 0) queue.push(neighbor);});}- if (topologicalOrder.length !== Object.keys(dependencies).length) {+ if (topologicalOrder.length !== Object.keys(dependencies)?.length) {console.error('Cycle detected in the dependency graph!');}