diff --git a/api/all/src/main/java/io/opentelemetry/api/common/AttributeKey.java b/api/all/src/main/java/io/opentelemetry/api/common/AttributeKey.java index 7d012aa14ca..ca47e8c3270 100644 --- a/api/all/src/main/java/io/opentelemetry/api/common/AttributeKey.java +++ b/api/all/src/main/java/io/opentelemetry/api/common/AttributeKey.java @@ -70,4 +70,16 @@ static AttributeKey> longArrayKey(String key) { static AttributeKey> doubleArrayKey(String key) { return InternalAttributeKeyImpl.create(key, AttributeType.DOUBLE_ARRAY); } + + static AttributeKey byteArrayKey(String key) { + return InternalAttributeKeyImpl.create(key, AttributeType.BYTE_ARRAY); + } + + static AttributeKey>> valueArrayKey(String key) { + return InternalAttributeKeyImpl.create(key, AttributeType.VALUE_ARRAY); + } + + static AttributeKey mapKey(String key) { + return InternalAttributeKeyImpl.create(key, AttributeType.MAP); + } } diff --git a/api/all/src/main/java/io/opentelemetry/api/common/AttributeType.java b/api/all/src/main/java/io/opentelemetry/api/common/AttributeType.java index 1c51e36d644..eb4d2739764 100644 --- a/api/all/src/main/java/io/opentelemetry/api/common/AttributeType.java +++ b/api/all/src/main/java/io/opentelemetry/api/common/AttributeType.java @@ -17,5 +17,8 @@ public enum AttributeType { STRING_ARRAY, BOOLEAN_ARRAY, LONG_ARRAY, - DOUBLE_ARRAY + DOUBLE_ARRAY, + BYTE_ARRAY, + VALUE_ARRAY, + MAP } diff --git a/api/all/src/main/java/io/opentelemetry/api/common/Value.java b/api/all/src/main/java/io/opentelemetry/api/common/Value.java index a29be801e27..084fcb19479 100644 --- a/api/all/src/main/java/io/opentelemetry/api/common/Value.java +++ b/api/all/src/main/java/io/opentelemetry/api/common/Value.java @@ -84,6 +84,10 @@ static Value> of(Map> value) { return KeyValueList.createFromMap(value); } + static Value> of(Attributes attributes) { + // TODO + } + /** Returns the type of this {@link Value}. Useful for building switch statements. */ ValueType getType();