Skip to content

Commit 1b37181

Browse files
committed
fix(aggregate transform): keep previous metrics only for diff mode
1 parent 383c2ff commit 1b37181

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/transforms/aggregate.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ impl Aggregate {
315315
}
316316
}
317317

318-
self.prev_map = map;
318+
// Only diff aggregation mode makes use of previous values
319+
if matches!(self.mode, AggregationMode::Diff) {
320+
self.prev_map = map;
321+
}
319322
emit!(AggregateFlushed);
320323
}
321324
}

0 commit comments

Comments
 (0)