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:
Luke Hanley 2018-03-28 14:04:30 +01:00 committed by stuart nelson
parent d49167c4b9
commit f504d69aff
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ func InstrumentRoundTripperTrace(it *InstrumentTrace, next http.RoundTripper) Ro
}
},
DNSDone: func(_ httptrace.DNSDoneInfo) {
if it.DNSStart != nil {
it.DNSStart(time.Since(start).Seconds())
if it.DNSDone != nil {
it.DNSDone(time.Since(start).Seconds())
}
},
ConnectStart: func(_, _ string) {