code: func (t *xrayTransport) RoundTrip(req *http.Request) (*http.Response, error) {
  	s := ContextSegment(req.Context())
  	if s == nil {
  		return t.wrapped.RoundTrip(req)
  	}
  
  	sub := s.NewSubsegment(req.URL.Host)
  	defer sub.Close()
  
  	sub.RecordRequest(req, "remote")
  
  	resp, err := t.wrapped.RoundTrip(req)
  
  	if err != nil {
  		sub.RecordError(err)
  	} else {
  		sub.RecordResponse(resp)
  	}
  
  	return resp, err
  }
docs: // RoundTrip wraps the original RoundTripper.RoundTrip to create xray tracing segments