Skip to content

Commit

Permalink
[processor/filter] enable exhaustive lint for (#25062)
Browse files Browse the repository at this point in the history
**Description:** 
related #23266

Signed-off-by: Ziqi Zhao <[email protected]>
  • Loading branch information
fatsheep9146 authored Aug 8, 2023
1 parent e314b70 commit 8f724f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions processor/filterprocessor/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func (fmp *filterMetricProcessor) processMetrics(ctx context.Context, md pmetric
}
}
if fmp.skipDataPointExpr != nil {
//exhaustive:enforce
switch metric.Type() {
case pmetric.MetricTypeSum:
errors = multierr.Append(errors, fmp.handleNumberDataPoints(ctx, metric.Sum().DataPoints(), metric, smetrics.Metrics(), scope, resource))
Expand Down

0 comments on commit 8f724f1

Please sign in to comment.