Skip to content

Commit a4bc011

Browse files
committed
add warning about discarded value
1 parent de48d1b commit a4bc011

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)