mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 00:38:59 +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...,
|
args...,
|
||||||
).ScanStruct(&serviceItem)
|
).ScanStruct(&serviceItem)
|
||||||
|
|
||||||
|
if serviceItem.NumCalls == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Error("Error in processing sql query: ", err)
|
zap.S().Error("Error in processing sql query: ", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
args, errStatus = buildQueryWithTagParams(ctx, queryParams.Tags, &errorQuery, args)
|
||||||
err = r.db.QueryRow(ctx, errorQuery, args...).Scan(&numErrors)
|
err = r.db.QueryRow(ctx, errorQuery, args...).Scan(&numErrors)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.S().Error("Error in processing sql query: ", err)
|
zap.S().Error("Error in processing sql query: ", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user