From b5e94ea1893657076c9cc136e2028a6d70e03341 Mon Sep 17 00:00:00 2001 From: ZhenyuTan-amz Date: Thu, 24 Mar 2022 16:04:40 -0400 Subject: [PATCH] CWA customer changes #4: Allow unknown typs for Metrics.Fields.values --- metric/metric.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metric/metric.go b/metric/metric.go index f8483459a93bf..b96ee4991304d 100644 --- a/metric/metric.go +++ b/metric/metric.go @@ -364,7 +364,9 @@ func convertField(v interface{}) interface{} { return float64(*v) } default: - return nil + //TODO: change here once we figure out how to handle our own map-based metric definition + //return v here because we don't want to return nil for unknown types + return v } return nil }