From 8213793fb30cda154e67cf5dd6aa3ad4a5562c2f Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Thu, 1 Feb 2024 14:01:57 +0000 Subject: [PATCH] metrics: fix missing timeout errors Signed-off-by: Wei Fu --- metrics/utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metrics/utils.go b/metrics/utils.go index a0fe7bb..743c0dc 100644 --- a/metrics/utils.go +++ b/metrics/utils.go @@ -126,6 +126,8 @@ func updateNetErrors(stats *types.ResponseErrorStats, err error) { stats.NetErrors[errNetIOTimeout.Error()]++ case strings.Contains(errInStr, errTLSHandshakeTimeout.Error()): stats.NetErrors[errTLSHandshakeTimeout.Error()]++ + default: + stats.NetErrors[err.Error()]++ } case errors.Is(err, io.ErrUnexpectedEOF): stats.NetErrors[io.ErrUnexpectedEOF.Error()]++