Skip to content

Commit e208f01

Browse files
Provide a default for missing values in KeyValue
fixes micrometer-metricsgh-3458
1 parent b732f2e commit e208f01

File tree

1 file changed

+5
-0
lines changed
  • micrometer-commons/src/main/java/io/micrometer/common

1 file changed

+5
-0
lines changed

micrometer-commons/src/main/java/io/micrometer/common/KeyValue.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
*/
2929
public interface KeyValue extends Comparable<KeyValue> {
3030

31+
/**
32+
* Use this if you want to indicate that the value is missing.
33+
*/
34+
public static final String NONE = "none";
35+
3136
String getKey();
3237

3338
String getValue();

0 commit comments

Comments
 (0)