Skip to content

Commit

Permalink
fix: condition to drop
Browse files Browse the repository at this point in the history
Signed-off-by: Loc Mai <[email protected]>
  • Loading branch information
locmai committed May 10, 2022
1 parent 9879083 commit e5a80db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/prometheusexporter/accumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (a *lastValueAccumulator) accumulateSum(metric pmetric.Metric, il pcommon.I
}

// Drop non-monotonic and non-cumulative metrics
if doubleSum.AggregationTemporality() == pmetric.MetricAggregationTemporalityDelta || !doubleSum.IsMonotonic() {
if doubleSum.AggregationTemporality() == pmetric.MetricAggregationTemporalityDelta && !doubleSum.IsMonotonic() {
return
}

Expand Down

0 comments on commit e5a80db

Please sign in to comment.