Browse Source

correctly export version negotiation failures to Prometheus

pull/1424/head
Marten Seemann 4 years ago
parent
commit
282be49060
  1. 3
      p2p/transport/quic/tracer_metrics.go

3
p2p/transport/quic/tracer_metrics.go

@ -227,6 +227,9 @@ func (m *metricsConnTracer) ClosedConnection(r logging.CloseReason) {
side = "remote" side = "remote"
desc = "stateless_reset" desc = "stateless_reset"
} }
if _, ok := r.VersionNegotiation(); ok {
desc = "version_negotiation"
}
if timeout, ok := r.Timeout(); ok { if timeout, ok := r.Timeout(); ok {
switch timeout { switch timeout {
case logging.TimeoutReasonHandshake: case logging.TimeoutReasonHandshake:

Loading…
Cancel
Save