diff --git a/pkg/resourcetotelemetry/resource_to_telemetry.go b/pkg/resourcetotelemetry/resource_to_telemetry.go index de196bc7b3a0..67852f4d1015 100644 --- a/pkg/resourcetotelemetry/resource_to_telemetry.go +++ b/pkg/resourcetotelemetry/resource_to_telemetry.go @@ -67,6 +67,7 @@ func convertToMetricsAttributes(md pmetric.Metrics) pmetric.Metrics { // addAttributesToMetric adds additional labels to the given metric func addAttributesToMetric(metric pmetric.Metric, labelMap pcommon.Map) { + //exhaustive:enforce switch metric.Type() { case pmetric.MetricTypeGauge: addAttributesToNumberDataPoints(metric.Gauge().DataPoints(), labelMap)