Merge pull request #535 from kklipsch/client_example_fix
fix client trace examples to actually capture metrics
This commit is contained in:
commit
7190de1ef2
|
@ -74,16 +74,16 @@ func TestClientMiddlewareAPI(t *testing.T) {
|
||||||
|
|
||||||
trace := &InstrumentTrace{
|
trace := &InstrumentTrace{
|
||||||
DNSStart: func(t float64) {
|
DNSStart: func(t float64) {
|
||||||
dnsLatencyVec.WithLabelValues("dns_start")
|
dnsLatencyVec.WithLabelValues("dns_start").Observe(t)
|
||||||
},
|
},
|
||||||
DNSDone: func(t float64) {
|
DNSDone: func(t float64) {
|
||||||
dnsLatencyVec.WithLabelValues("dns_done")
|
dnsLatencyVec.WithLabelValues("dns_done").Observe(t)
|
||||||
},
|
},
|
||||||
TLSHandshakeStart: func(t float64) {
|
TLSHandshakeStart: func(t float64) {
|
||||||
tlsLatencyVec.WithLabelValues("tls_handshake_start")
|
tlsLatencyVec.WithLabelValues("tls_handshake_start").Observe(t)
|
||||||
},
|
},
|
||||||
TLSHandshakeDone: func(t float64) {
|
TLSHandshakeDone: func(t float64) {
|
||||||
tlsLatencyVec.WithLabelValues("tls_handshake_done")
|
tlsLatencyVec.WithLabelValues("tls_handshake_done").Observe(t)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue