Skip to content

Commit

Permalink
Merge pull request #2 from faultysegment/instrument_trace_fix
Browse files Browse the repository at this point in the history
Observe data in InstrumentTrace
  • Loading branch information
Yury Kozyrev authored Apr 10, 2020
2 parents 5261269 + abc22f0 commit 249c7bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ func instrumentClientWithConstLabels(namespace string, c *http.Client, reg prome

trace := &pph.InstrumentTrace{
DNSStart: func(t float64) {
i.dnsDuration.WithLabelValues("dns_start")
i.dnsDuration.WithLabelValues("dns_start").Observe(t)
},
DNSDone: func(t float64) {
i.dnsDuration.WithLabelValues("dns_done")
i.dnsDuration.WithLabelValues("dns_done").Observe(t)
},
TLSHandshakeStart: func(t float64) {
i.tlsDuration.WithLabelValues("tls_handshake_start")
i.tlsDuration.WithLabelValues("tls_handshake_start").Observe(t)
},
TLSHandshakeDone: func(t float64) {
i.tlsDuration.WithLabelValues("tls_handshake_done")
i.tlsDuration.WithLabelValues("tls_handshake_done").Observe(t)
},
}

Expand Down

0 comments on commit 249c7bf

Please sign in to comment.