Skip to content

Commit 1609f5f

Browse files
committed
gt
1 parent 9dcaf3b commit 1609f5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/internal/state/AsynchronousMetricStorage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ private Attributes validateAndProcessAttributes(Attributes attributes) {
175175
Context context = Context.current();
176176
attributes = attributesProcessor.process(attributes, context);
177177

178-
if (aggregatorHandles.size() == maxCardinality) {
178+
if (aggregatorHandles.size() >= maxCardinality) {
179179
aggregatorHandles.forEach(handlesDeleter);
180-
if (aggregatorHandles.size() == maxCardinality) {
180+
if (aggregatorHandles.size() >= maxCardinality) {
181181
throttlingLogger.log(
182182
Level.WARNING,
183183
"Instrument "

0 commit comments

Comments
 (0)