From d60b2b1eef8feae3ce149c144c6c43037deed29f Mon Sep 17 00:00:00 2001 From: Ziqi Zhao Date: Sat, 5 Aug 2023 20:15:44 +0800 Subject: [PATCH] [chore] fix exhaustive lint for processor groupbyattrs Signed-off-by: Ziqi Zhao --- processor/groupbyattrsprocessor/processor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/processor/groupbyattrsprocessor/processor.go b/processor/groupbyattrsprocessor/processor.go index a06200b2ce5e..9bcd6a9c587c 100644 --- a/processor/groupbyattrsprocessor/processor.go +++ b/processor/groupbyattrsprocessor/processor.go @@ -110,6 +110,7 @@ func (gap *groupByAttrsProcessor) processMetrics(ctx context.Context, md pmetric for k := 0; k < ilm.Metrics().Len(); k++ { metric := ilm.Metrics().At(k) + //exhaustive:enforce switch metric.Type() { case pmetric.MetricTypeGauge: @@ -205,6 +206,7 @@ func getMetricInInstrumentationLibrary(ilm pmetric.ScopeMetrics, searchedMetric metric.SetUnit(searchedMetric.Unit()) // Move other special type specific values + //exhaustive:enforce switch searchedMetric.Type() { case pmetric.MetricTypeHistogram: