Skip to content

Commit 21b0b3e

Browse files
committed
more comments
1 parent 603305e commit 21b0b3e

File tree

1 file changed

+1
-1
lines changed
  • opentelemetry-sdk/src/metrics/internal

1 file changed

+1
-1
lines changed

opentelemetry-sdk/src/metrics/internal/sum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl<T: Number<T>> ValueMap<T> {
7272
loop {
7373
let current = self.total_unique_entries.load(Ordering::Acquire);
7474
if is_under_cardinality_limit(current) {
75-
// Attempt to increment atomically
75+
// Attempt to increment atomically if old value is still current, else retry
7676
match self.total_unique_entries.compare_exchange(
7777
current,
7878
current + 1,

0 commit comments

Comments
 (0)