(next http.RoundTripper)
| 25 | } |
| 26 | |
| 27 | func NewTransport(next http.RoundTripper) http.RoundTripper { |
| 28 | return instrumentedTransport{ |
| 29 | next: next, |
| 30 | observer: requestDuration, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func (i instrumentedTransport) RoundTrip(req *http.Request) (*http.Response, error) { |
| 35 | start := time.Now() |
no outgoing calls
no test coverage detected