Skip to content

Commit 467d4d5

Browse files
authored
add missing warning about discarded value (#7821)
1 parent cba9239 commit 467d4d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdk-extensions/incubator/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/YamlDeclarativeConfigProperties.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ public Integer getInt(String name) {
175175
if (value instanceof Long) {
176176
return ((Long) value).intValue();
177177
}
178+
if (value != null) {
179+
logTypeWarning(name, value, Integer.class);
180+
}
178181
return null;
179182
}
180183

0 commit comments

Comments
 (0)