Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

correctly export version negotiation failures to Prometheus #205

Merged
merged 1 commit into from
Apr 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tracer_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ func (m *metricsConnTracer) ClosedConnection(r logging.CloseReason) {
side = "remote"
desc = "stateless_reset"
}
if _, ok := r.VersionNegotiation(); ok {
desc = "version_negotiation"
}
if timeout, ok := r.Timeout(); ok {
switch timeout {
case logging.TimeoutReasonHandshake:
Expand Down