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())