We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 603305e commit 21b0b3eCopy full SHA for 21b0b3e
opentelemetry-sdk/src/metrics/internal/sum.rs
@@ -72,7 +72,7 @@ impl<T: Number<T>> ValueMap<T> {
72
loop {
73
let current = self.total_unique_entries.load(Ordering::Acquire);
74
if is_under_cardinality_limit(current) {
75
- // Attempt to increment atomically
+ // Attempt to increment atomically if old value is still current, else retry
76
match self.total_unique_entries.compare_exchange(
77
current,
78
current + 1,
0 commit comments