code: func Record(req *http.Request, requestInfo *request.RequestInfo, component, contentType string, code int, responseSizeInBytes int, elapsed time.Duration) {
  	if requestInfo == nil {
  		requestInfo = &request.RequestInfo{Verb: req.Method, Path: req.URL.Path}
  	}
  	scope := CleanScope(requestInfo)
  	if requestInfo.IsResourceRequest {
  		MonitorRequest(req, strings.ToUpper(requestInfo.Verb), requestInfo.APIGroup, requestInfo.APIVersion, requestInfo.Resource, requestInfo.Subresource, scope, component, contentType, code, responseSizeInBytes, elapsed)
  	} else {
  		MonitorRequest(req, strings.ToUpper(requestInfo.Verb), "", "", "", requestInfo.Path, scope, component, contentType, code, responseSizeInBytes, elapsed)
  	}
  }
docs: // Record records a single request to the standard metrics endpoints. For use by handlers that perform their own
  // processing. All API paths should use InstrumentRouteFunc implicitly. Use this instead of MonitorRequest if
  // you already have a RequestInfo object.