tcnksm / go-httpstat

Tracing golang HTTP request latency
MIT License
421 stars 72 forks source link

Handle when `net.DialContext` is not used #5

Closed tcnksm closed 7 years ago

tcnksm commented 7 years ago

httptrace's DNSStart, DNSDone and ConnectStart is enabled when using net.DialContext(it comes from go1.7). So if client uses normal net.Dial then it shows non-zero time (9223372036854). This PR prevents it.

Fixed https://github.com/tcnksm/go-httpstat/issues/4