forked from mirror/client_golang
promhttp: fix DNSDone should call Done, not Start (#395)
When tracing, it appears DNSDone is instead calling the supplied DNSStart function
This commit is contained in:
parent
d49167c4b9
commit
f504d69aff
|
@ -81,8 +81,8 @@ func InstrumentRoundTripperTrace(it *InstrumentTrace, next http.RoundTripper) Ro
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
DNSDone: func(_ httptrace.DNSDoneInfo) {
|
DNSDone: func(_ httptrace.DNSDoneInfo) {
|
||||||
if it.DNSStart != nil {
|
if it.DNSDone != nil {
|
||||||
it.DNSStart(time.Since(start).Seconds())
|
it.DNSDone(time.Since(start).Seconds())
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ConnectStart: func(_, _ string) {
|
ConnectStart: func(_, _ string) {
|
||||||
|
|
Loading…
Reference in New Issue