@@ -105,11 +105,6 @@ private static String flipCoin() {
105105 AttributeKey <List <Boolean >> booleanArrKey = AttributeKey .booleanArrayKey ("acme.boolean_array" );
106106 AttributeKey <List <Double >> doubleArrKey = AttributeKey .doubleArrayKey ("acme.double_array" );
107107
108- // Extended keys
109- @ SuppressWarnings ("deprecation" ) // Supporting deprecated EXTENDED_ATTRIBUTES until removed
110- ExtendedAttributeKey <ExtendedAttributes > mapKey =
111- ExtendedAttributeKey .extendedAttributesKey ("acme.map" );
112-
113108 // VALUE key
114109 ExtendedAttributeKey <Value <?>> valueKey = ExtendedAttributeKey .valueKey ("acme.value" );
115110
@@ -128,9 +123,6 @@ void extendedAttributesUsage() {
128123 .put (longArrKey , Arrays .asList (1L , 2L ))
129124 .put (booleanArrKey , Arrays .asList (true , false ))
130125 .put (doubleArrKey , Arrays .asList (1.1 , 2.2 ))
131- .put (
132- mapKey ,
133- ExtendedAttributes .builder ().put ("childStr" , "value" ).put ("childLong" , 1L ).build ())
134126 .put (
135127 valueKey ,
136128 Value .of (
@@ -147,9 +139,6 @@ void extendedAttributesUsage() {
147139 assertThat (extendedAttributes .get (longArrKey )).isEqualTo (Arrays .asList (1L , 2L ));
148140 assertThat (extendedAttributes .get (booleanArrKey )).isEqualTo (Arrays .asList (true , false ));
149141 assertThat (extendedAttributes .get (doubleArrKey )).isEqualTo (Arrays .asList (1.1 , 2.2 ));
150- assertThat (extendedAttributes .get (mapKey ))
151- .isEqualTo (
152- ExtendedAttributes .builder ().put ("childStr" , "value" ).put ("childLong" , 1L ).build ());
153142 assertThat (extendedAttributes .get (valueKey ))
154143 .isEqualTo (
155144 Value .of (
@@ -164,7 +153,6 @@ void extendedAttributesUsage() {
164153 // acme.double_array(DOUBLE_ARRAY): [1.1, 2.2]
165154 // acme.long(LONG): 1
166155 // acme.long_array(LONG_ARRAY): [1, 2]
167- // acme.map(EXTENDED_ATTRIBUTES): {childLong=1, childStr="value"}
168156 // acme.string(STRING): value
169157 // acme.string_array(STRING_ARRAY): [value1, value2]
170158 // acme.value(VALUE): [KeyValue{key=childStr, value=StringValue{value=value}},
@@ -178,7 +166,6 @@ void extendedAttributesUsage() {
178166 }
179167
180168 @ Test
181- @ SuppressWarnings ("deprecation" ) // testing deprecated code
182169 void logRecordBuilder_ExtendedAttributes () {
183170 InMemoryLogRecordExporter exporter = InMemoryLogRecordExporter .create ();
184171 SdkLoggerProvider loggerProvider =
@@ -199,9 +186,6 @@ void logRecordBuilder_ExtendedAttributes() {
199186 .setAttribute (longArrKey , Arrays .asList (1L , 2L ))
200187 .setAttribute (booleanArrKey , Arrays .asList (true , false ))
201188 .setAttribute (doubleArrKey , Arrays .asList (1.1 , 2.2 ))
202- .setAttribute (
203- mapKey ,
204- ExtendedAttributes .builder ().put ("childStr" , "value" ).put ("childLong" , 1L ).build ())
205189 .setAttribute (
206190 valueKey ,
207191 Value .of (
@@ -245,12 +229,6 @@ void logRecordBuilder_ExtendedAttributes() {
245229 .put (longArrKey , Arrays .asList (1L , 2L ))
246230 .put (booleanArrKey , Arrays .asList (true , false ))
247231 .put (doubleArrKey , Arrays .asList (1.1 , 2.2 ))
248- .put (
249- mapKey ,
250- ExtendedAttributes .builder ()
251- .put ("childStr" , "value" )
252- .put ("childLong" , 1L )
253- .build ())
254232 .put (
255233 valueKey ,
256234 Value .of (
0 commit comments