From 4384f3ca1ee0917df53ad2543e2f6807b22268f3 Mon Sep 17 00:00:00 2001 From: "minquan.chen" Date: Thu, 10 Aug 2023 08:40:42 +0800 Subject: [PATCH] [chore][exporter/azuremonitor]enable exhaustive for linter --- exporter/azuremonitorexporter/metric_to_envelopes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exporter/azuremonitorexporter/metric_to_envelopes.go b/exporter/azuremonitorexporter/metric_to_envelopes.go index a0bc247f8076..fd454113d936 100644 --- a/exporter/azuremonitorexporter/metric_to_envelopes.go +++ b/exporter/azuremonitorexporter/metric_to_envelopes.go @@ -87,6 +87,7 @@ func newMetricPacker(logger *zap.Logger) *metricPacker { } func (packer metricPacker) getMetricTimedData(metric pmetric.Metric) metricTimedData { + //exhaustive:enforce switch metric.Type() { case pmetric.MetricTypeGauge: return newScalarMetric(metric.Name(), metric.Gauge().DataPoints())