We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36070fc commit f323783Copy full SHA for f323783
opentelemetry-sdk/src/metrics/internal/mod.rs
@@ -72,8 +72,12 @@ where
72
{
73
fn new(config: A::InitConfig) -> Self {
74
ValueMap {
75
- trackers: RwLock::new(HashMap::with_capacity(STREAM_CARDINALITY_LIMIT as usize)),
76
- trackers_for_collect: RwLock::new(HashMap::with_capacity(STREAM_CARDINALITY_LIMIT as usize)),
+ trackers: RwLock::new(HashMap::with_capacity(
+ 1 + STREAM_CARDINALITY_LIMIT as usize,
77
+ )),
78
+ trackers_for_collect: RwLock::new(HashMap::with_capacity(
79
80
81
has_no_attribute_value: AtomicBool::new(false),
82
no_attribute_tracker: A::create(&config),
83
count: AtomicUsize::new(0),
0 commit comments