From 8ca9449828fd560b67144b78c2327d20d8202b10 Mon Sep 17 00:00:00 2001 From: Murphy Chen Date: Sat, 19 Aug 2023 00:01:22 +0800 Subject: [PATCH] [chore][exporter/azuremonitor]enable exhaustive for linter (#25131) related to https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23266 Co-authored-by: Alex Boten --- 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())