Skip to content

Commit a151d58

Browse files
committed
add todo comment
1 parent f323783 commit a151d58

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ where
7575
trackers: RwLock::new(HashMap::with_capacity(
7676
1 + STREAM_CARDINALITY_LIMIT as usize,
7777
)),
78+
// TODO: For cumulative, this is not required, so avoid this
79+
// pre-allocation.
7880
trackers_for_collect: RwLock::new(HashMap::with_capacity(
7981
1 + STREAM_CARDINALITY_LIMIT as usize,
8082
)),

0 commit comments

Comments
 (0)