Skip to content

Commit fa58b02

Browse files
committed
remove log statement
1 parent e942dc2 commit fa58b02

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,6 @@ private Attributes validateAndProcessAttributes(Attributes attributes) {
168168
return MetricStorage.CARDINALITY_OVERFLOW;
169169
}
170170

171-
if (aggregatorHandles.containsKey(
172-
attributes)) { // Check there is not already a recording for the attributes
173-
throttlingLogger.log(
174-
Level.WARNING,
175-
"Instrument "
176-
+ metricDescriptor.getSourceInstrument().getName()
177-
+ " has recorded multiple values for the same attributes: "
178-
+ attributes);
179-
}
180-
181171
return attributes;
182172
}
183173

sdk/metrics/src/test/java/io/opentelemetry/sdk/metrics/internal/state/AsynchronousMetricStorageTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ void record_DuplicateAttributes(MemoryMode memoryMode) {
226226
sum.hasPointsSatisfying(
227227
point ->
228228
point.hasValue(3).hasAttributes(attributeEntry("key1", "a")))));
229-
logs.assertContains(
230-
"Instrument long-counter has recorded multiple values for the same attributes: {key1=\"a\"}");
231229
}
232230

233231
@ParameterizedTest

0 commit comments

Comments
 (0)