Skip to content

Commit

Permalink
[chore] fix exhaustive lint for processor groupbyattrs
Browse files Browse the repository at this point in the history
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 committed Aug 7, 2023
1 parent 74cffb5 commit d60b2b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions processor/groupbyattrsprocessor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d60b2b1

Please sign in to comment.