diff --git a/opentelemetry/src/sdk/metrics/processors/basic.rs b/opentelemetry/src/sdk/metrics/processors/basic.rs index f858f0b526..addad2ad17 100644 --- a/opentelemetry/src/sdk/metrics/processors/basic.rs +++ b/opentelemetry/src/sdk/metrics/processors/basic.rs @@ -215,9 +215,10 @@ impl Checkpointer for BasicLockedProcessor<'_> { // If this processor does not require memory, stale, stateless // entries can be removed. This implies that they were not updated // over the previous full collection interval. - if stale && stateless && has_memory { + if stale && stateless && !has_memory { return false; } + return true; } // Update Aggregator state to support exporting either a