mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 21:19:04 +08:00
fix: do not show services without any data for select interval (#1521)
This commit is contained in:
parent
166e5612eb
commit
32fba00aa8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user