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: do not show services without any data for select interval (#1521)

Srikanth Chekuri32fba00aa871
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.go
index afd7f93974..464ba3e272 100644
--- a/pkg/query-service/app/clickhouseReader/reader.go
+++ b/pkg/query-service/app/clickhouseReader/reader.go
@@ -762,11 +762,16 @@ func (r *ClickHouseReader) GetServices(ctx context.Context, queryParams *model.G
args...,
).ScanStruct(&serviceItem)
+ if serviceItem.NumCalls == 0 {
+ return
+ }
+
if err != nil {
zap.S().Error("Error in processing sql query: ", err)
return
}
+ args, errStatus = buildQueryWithTagParams(ctx, queryParams.Tags, &errorQuery, args)
err = r.db.QueryRow(ctx, errorQuery, args...).Scan(&numErrors)
if err != nil {
zap.S().Error("Error in processing sql query: ", err)