Skip to content

Commit

Permalink
Merge pull request #88 from fuweid/fix-missing-timeout
Browse files Browse the repository at this point in the history
metrics: fix missing timeout errors
  • Loading branch information
fuweid authored Feb 1, 2024
2 parents 53e7213 + 8213793 commit 5ad18fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metrics/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()]++
Expand Down

0 comments on commit 5ad18fe

Please sign in to comment.