* @param metricType the request metric type
*/
public List<MetricDatum> toMetricData(MetricType metricType, Request<?> request, Response<?> response) {
if (metricType instanceof Field) {
// Predefined metrics across all aws http clients
Field predefined = (Field) metricType;
switch(predefined) {
case HttpClientRetryCount:
return metricOfCount(predefined, request, response);
case RequestCount: // intentionally fall thru to reuse the same routine as RetryCount
case RetryCount: