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
refactor: removed the error body (#4850)
Rajat Dabade27e412d1ee59
diff --git a/frontend/src/lib/dashboard/getQueryResults.ts b/frontend/src/lib/dashboard/getQueryResults.tsindex 0290a574cd..e3f956c32a 100644--- a/frontend/src/lib/dashboard/getQueryResults.ts+++ b/frontend/src/lib/dashboard/getQueryResults.ts@@ -33,9 +33,11 @@ export async function GetMetricQueryRange();if (response.statusCode >= 400) {- throw new Error(- `API responded with ${response.statusCode} - ${response.error} status: ${response.message}, errors: ${response?.body}`,- );+ let error = `API responded with ${response.statusCode} - ${response.error} status: ${response.message}`;+ if (response.body && !isEmpty(response.body)) {+ error = `${error}, errors: ${response.body}`;+ }+ throw new Error(error);}if (response.payload?.data?.result) {