1414import static io .opentelemetry .api .incubator .common .ExtendedAttributeKey .longKey ;
1515import static io .opentelemetry .api .incubator .common .ExtendedAttributeKey .stringArrayKey ;
1616import static io .opentelemetry .api .incubator .common .ExtendedAttributeKey .stringKey ;
17- import static io .opentelemetry .api .incubator .common .ExtendedAttributeKey .valueKey ;
1817
1918import io .opentelemetry .api .common .AttributeKey ;
2019import io .opentelemetry .api .common .Attributes ;
@@ -93,7 +92,8 @@ default ExtendedAttributesBuilder put(String key, boolean value) {
9392 * <p>Note: It is strongly recommended to use {@link #put(ExtendedAttributeKey, Object)}, and
9493 * pre-allocate your keys, if possible.
9594 *
96- * @deprecated Use {@link #put(String, Value)} with {@link Value#of(java.util.Map)} instead.
95+ * @deprecated Use {@link #put(ExtendedAttributeKey, Object)} with {@link
96+ * ExtendedAttributeKey#valueKey(String)} and {@link Value#of(java.util.Map)} instead.
9797 * @return this Builder
9898 */
9999 @ Deprecated
@@ -102,18 +102,6 @@ default <T> ExtendedAttributesBuilder put(String key, ExtendedAttributes value)
102102 return put (ExtendedAttributeKey .extendedAttributesKey (key ), value );
103103 }
104104
105- /**
106- * Puts a {@link Value} attribute into this.
107- *
108- * <p>Note: It is strongly recommended to use {@link #put(ExtendedAttributeKey, Object)}, and
109- * pre-allocate your keys, if possible.
110- *
111- * @return this Builder
112- */
113- default ExtendedAttributesBuilder put (String key , Value <?> value ) {
114- return put (valueKey (key ), value );
115- }
116-
117105 /**
118106 * Puts a String array attribute into this.
119107 *
0 commit comments