Skip to content

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.

fix: remove series with no points (#5077)

Srikanth Chekuri1369fe19120b
diff --git a/pkg/query-service/postprocess/having.go b/pkg/query-service/postprocess/having.go
index a61aac3c9d..a37ba70379 100644
--- a/pkg/query-service/postprocess/having.go
+++ b/pkg/query-service/postprocess/having.go
@@ -23,6 +23,10 @@ func applyHavingClause(result []*v3.Result, queryRangeParams *v3.QueryRangeParam
j--
}
}
+ if len(result.Series[i].Points) == 0 {
+ result.Series = append(result.Series[:i], result.Series[i+1:]...)
+ i--
+ }
}
}
}