Skip to content

Commit f323783

Browse files
committed
one more
1 parent 36070fc commit f323783

File tree

1 file changed

+6
-2
lines changed
  • opentelemetry-sdk/src/metrics/internal

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ where
7272
{
7373
fn new(config: A::InitConfig) -> Self {
7474
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)),
75+
trackers: RwLock::new(HashMap::with_capacity(
76+
1 + STREAM_CARDINALITY_LIMIT as usize,
77+
)),
78+
trackers_for_collect: RwLock::new(HashMap::with_capacity(
79+
1 + STREAM_CARDINALITY_LIMIT as usize,
80+
)),
7781
has_no_attribute_value: AtomicBool::new(false),
7882
no_attribute_tracker: A::create(&config),
7983
count: AtomicUsize::new(0),

0 commit comments

Comments
 (0)