fix client trace examples to actually capture metrics

Signed-off-by: kklipsch <kklipsch@example.com>
This commit is contained in:
kklipsch 2019-02-04 20:30:19 +00:00
parent 12af604cf2
commit a11607d7ae
1 changed files with 4 additions and 4 deletions

View File

@ -74,16 +74,16 @@ func TestClientMiddlewareAPI(t *testing.T) {
trace := &InstrumentTrace{
DNSStart: func(t float64) {
dnsLatencyVec.WithLabelValues("dns_start")
dnsLatencyVec.WithLabelValues("dns_start").Observe(t)
},
DNSDone: func(t float64) {
dnsLatencyVec.WithLabelValues("dns_done")
dnsLatencyVec.WithLabelValues("dns_done").Observe(t)
},
TLSHandshakeStart: func(t float64) {
tlsLatencyVec.WithLabelValues("tls_handshake_start")
tlsLatencyVec.WithLabelValues("tls_handshake_start").Observe(t)
},
TLSHandshakeDone: func(t float64) {
tlsLatencyVec.WithLabelValues("tls_handshake_done")
tlsLatencyVec.WithLabelValues("tls_handshake_done").Observe(t)
},
}