Skip to content

Commit b091041

Browse files
chore: add NullNode case while converting values for mertrics reporting (#222)
1 parent 015ee5c commit b091041

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

document-store/src/main/java/org/hypertrace/core/documentstore/metric/BaseDocStoreMetricProviderImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ private String getStringLabelValue(JsonNode jsonNode) {
140140
return String.valueOf(jsonNode.numberValue());
141141
case BOOLEAN:
142142
return String.valueOf(jsonNode.booleanValue());
143+
case NULL:
144+
return NULL_LABEL_VALUE_PLACEHOLDER;
143145
default:
144146
throw new IllegalArgumentException(
145147
String.format("Unsupported JSON node type: %s", jsonNode.getNodeType()));

0 commit comments

Comments
 (0)