Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Counter adds the delta from last collection. #395

Merged
merged 1 commit into from Dec 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion opentelemetry/src/sdk/metrics/processors/basic.rs
Expand Up @@ -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
Expand Down