Skip to content

Commit

Permalink
count the err case
Browse files Browse the repository at this point in the history
Signed-off-by: jyz0309 <45495947@qq.com>
  • Loading branch information
jyz0309 committed Dec 1, 2021
1 parent 03b46e7 commit c690c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/infosync/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ func doRequest(ctx context.Context, addrs []string, route, method string, body i
}
start := time.Now()
res, err = doRequestWithFailpoint(req)
metrics.PDApiExecutionHistogram.WithLabelValues("placement").Observe(time.Since(start).Seconds())
if err == nil {
metrics.PDApiExecutionHistogram.WithLabelValues("placement").Observe(time.Since(start).Seconds())
bodyBytes, err := io.ReadAll(res.Body)
if err != nil {
return nil, err
Expand Down

0 comments on commit c690c8d

Please sign in to comment.