File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
api/all/src/main/java/io/opentelemetry/api/common Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -70,4 +70,16 @@ static AttributeKey<List<Long>> longArrayKey(String key) {
7070 static AttributeKey <List <Double >> doubleArrayKey (String key ) {
7171 return InternalAttributeKeyImpl .create (key , AttributeType .DOUBLE_ARRAY );
7272 }
73+
74+ static AttributeKey <byte []> byteArrayKey (String key ) {
75+ return InternalAttributeKeyImpl .create (key , AttributeType .BYTE_ARRAY );
76+ }
77+
78+ static AttributeKey <List <Value <?>>> valueArrayKey (String key ) {
79+ return InternalAttributeKeyImpl .create (key , AttributeType .VALUE_ARRAY );
80+ }
81+
82+ static AttributeKey <List <KeyValue >> valueMapKey (String key ) {
83+ return InternalAttributeKeyImpl .create (key , AttributeType .VALUE_MAP );
84+ }
7385}
Original file line number Diff line number Diff line change @@ -17,5 +17,8 @@ public enum AttributeType {
1717 STRING_ARRAY ,
1818 BOOLEAN_ARRAY ,
1919 LONG_ARRAY ,
20- DOUBLE_ARRAY
20+ DOUBLE_ARRAY ,
21+ BYTE_ARRAY ,
22+ VALUE_ARRAY ,
23+ VALUE_MAP
2124}
You can’t perform that action at this time.
0 commit comments