From 717347fce28ff7c792c6120bba1b6baac996d9c9 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Fri, 30 Mar 2018 16:57:35 -0700 Subject: [PATCH] Allow empty string field values --- metric/metric.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/metric/metric.go b/metric/metric.go index 23c48697f..0af445c2d 100644 --- a/metric/metric.go +++ b/metric/metric.go @@ -247,11 +247,7 @@ func convertField(v interface{}) interface{} { case int64: return v case string: - if v == "" { - return nil - } else { - return v - } + return v case bool: return v case int: