func (lr roundTripRecorder) RoundTrip(req *http.Request) (*http.Response, error) {
	start := time.Now()
	res, err := lr.wrappedRoundTripper.RoundTrip(req)
	rtt := time.Since(start)

	if err != nil {
		lr.requestRecorder.RecordError(req.Method, req.URL, err)
	} else {
		lr.requestRecorder.Record(req.Method, req.URL, res, rtt)
	}

	return res, err
}
// RoundTrip implements http.RoundTripper. If delegates the request to the
// wrapped RoundTripper and invokes the appropriate RequestRecorder methods
// depending on the outcome.
RoundTrip implements http.RoundTripper. If delegates the request to the
wrapped RoundTripper and invokes the appropriate RequestRecorder methods
depending on the outcome.
// RoundTrip implements http . RoundTripper . If delegates the request to the // wrapped RoundTripper and invokes the appropriate RequestRecorder methods // depending on the outcome .
func (lr roundTripRecorder) RoundTrip(req *http.Request) (*http.Response, error) {
	start := time.Now()
	res, err := lr.wrappedRoundTripper.RoundTrip(req)
	rtt := time.Since(start)
	if err != nil {
		lr.requestRecorder.RecordError(req.Method, req.URL, err)
	} else {
		lr.requestRecorder.Record(req.Method, req.URL, res, rtt)
	}
	return res, err
}
func ( lr roundTripRecorder ) RoundTrip ( req * http . Request ) ( * http . Response , error ) { start := time . Now ( ) res , err := lr . wrappedRoundTripper . RoundTrip ( req ) rtt := time . Since ( start ) if err != nil { lr . requestRecorder . RecordError ( req . Method , req . URL , err ) } else { lr . requestRecorder . Record ( req . Method , req . URL , res , rtt ) } return res , err }
RoundTrip implements http.RoundTripper.
RoundTrip implements http . RoundTripper .