Skip to content

Commit

Permalink
[connector/count] enable exhaustive for count connector (#24779)
Browse files Browse the repository at this point in the history
relate:
#23266
  • Loading branch information
Frapschen authored Aug 2, 2023
1 parent 6d208cf commit 351b5c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connector/countconnector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func (c *count) ConsumeMetrics(ctx context.Context, md pmetric.Metrics) error {
mCtx := ottlmetric.NewTransformContext(metric, scopeMetrics.Metrics(), scopeMetrics.Scope(), resourceMetric.Resource())
errors = multierr.Append(errors, metricsCounter.update(ctx, pcommon.NewMap(), mCtx))

//exhaustive:enforce
switch metric.Type() {
case pmetric.MetricTypeGauge:
dps := metric.Gauge().DataPoints()
Expand Down

0 comments on commit 351b5c3

Please sign in to comment.