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: nil pointer exception when result[0].Table is nil (#8424)
Vishal Sharma749df2a979ba
diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.goindex d4bb00e25f..ff5144250e 100644--- a/pkg/query-service/app/http_handler.go+++ b/pkg/query-service/app/http_handler.go@@ -4527,11 +4527,30 @@ func (aH *APIHandler) sendQueryResultEvents(r *http.Request, result []*v3.Result}properties := queryInfoResult.ToMap()- if !(len(result) > 0 && (len(result[0].Series) > 0 || len(result[0].List) > 0 || len(result[0].Table.Rows) > 0)) {++ // Check if result is empty or has no data+ if len(result) == 0 {aH.Signoz.Analytics.TrackUser(r.Context(), claims.OrgID, claims.UserID, "Telemetry Query Returned Empty", properties)return}+ // Check if first result has no series data+ if len(result[0].Series) == 0 {+ // Check if first result has no list data+ if len(result[0].List) == 0 {+ // Check if first result has no table data+ if result[0].Table == nil {+ aH.Signoz.Analytics.TrackUser(r.Context(), claims.OrgID, claims.UserID, "Telemetry Query Returned Empty", properties)+ return+ }++ if len(result[0].Table.Rows) == 0 {+ aH.Signoz.Analytics.TrackUser(r.Context(), claims.OrgID, claims.UserID, "Telemetry Query Returned Empty", properties)+ return+ }+ }+ }+referrer := r.Header.Get("Referer")if referrer == "" {