Browse Source

优化 服务性能

路佳明 1 month ago
parent
commit
9a4e6d5762
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/observe/service/ot_app_score.go

+ 1 - 1
app/observe/service/ot_app_score.go

@@ -68,7 +68,7 @@ func (e *AppScore) GetServicesDetails(ctx context.Context, list *[]dto.ServiceAp
 	err := e.PgOrm.Table(tbl).
 		Select("service_name, sum(request_count) as total, sum(span_status_error_count) as error_num, avg(apdex) as apdex").
 		Where("timestamp>=? and timestamp<?", start, end).
-		Where("app_name", params.AppAlias).Group("service_name, timestamp").
+		Where("app_name", params.AppAlias).Group("service_name").
 		Find(list).Error
 	if err != nil {
 		return err