diff --git a/x-pack/metricbeat/module/azure/app_insights/data.go b/x-pack/metricbeat/module/azure/app_insights/data.go index b79bc1e2ba87..5908b1772f6b 100644 --- a/x-pack/metricbeat/module/azure/app_insights/data.go +++ b/x-pack/metricbeat/module/azure/app_insights/data.go @@ -190,7 +190,6 @@ func groupMetricsByDimension(metrics []MetricValue) map[string][]MetricValue { helper func(metrics []MetricValue) ) - // Review comment: Can you add some more comments to this helper func? helper = func(metrics []MetricValue) { for _, metric := range metrics { dimensionKey := getSortedKeys(metric.SegmentName) diff --git a/x-pack/metricbeat/module/azure/app_insights/data_test.go b/x-pack/metricbeat/module/azure/app_insights/data_test.go index 040c4386c233..91c75ba6afc2 100644 --- a/x-pack/metricbeat/module/azure/app_insights/data_test.go +++ b/x-pack/metricbeat/module/azure/app_insights/data_test.go @@ -48,7 +48,7 @@ func newMetricsTest(ts ...*date.Time) []MetricValue { }, } - mv := make([]MetricValue, 0, 3) + mv := make([]MetricValue, 0, numOfMetricValue) for i := range vals { mv = append(mv, MetricValue{