We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f05dcf commit d191cf7Copy full SHA for d191cf7
opentelemetry-sdk/src/metrics/internal/sum.rs
@@ -16,9 +16,11 @@ use super::{
16
AtomicTracker, Number,
17
};
18
19
+type BucketValue<T> = Mutex<Option<HashMap<AttributeSet, T>>>;
20
+type Buckets<T> = Arc<[BucketValue<T>; 256]>;
21
/// The storage for sums.
22
struct ValueMap<T: Number<T>> {
- buckets: Arc<[Mutex<Option<HashMap<AttributeSet, T>>>; 256]>,
23
+ buckets: Buckets<T>,
24
has_no_value_attribute_value: AtomicBool,
25
no_attribute_value: T::AtomicTracker,
26
}
0 commit comments