code: func newHTTP(r *http.Request) *awsxray.HTTP {
  	scheme := "http"
  	host := r.Host
  
  	if len(r.URL.Scheme) > 0 {
  		scheme = r.URL.Scheme
  	}
  
  	if len(r.URL.Host) > 0 {
  		host = r.URL.Host
  	}
  
  	return &awsxray.HTTP{
  		Request: &awsxray.Request{
  			Method:    r.Method,
  			URL:       fmt.Sprintf("%s://%s%s", scheme, host, r.URL.Path),
  			ClientIP:  getIp(r),
  			UserAgent: r.UserAgent(),
  		},
  		Response: &awsxray.Response{
  			Status: 200,
  		},
  	}
  }
docs: // newHTTP returns a http struct