Skip to content

Commit 1ffaffb

Browse files
committed
Remove String, Value<?> overload
1 parent a8085a5 commit 1ffaffb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

api/all/src/main/java/io/opentelemetry/api/common/AttributesBuilder.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -165,21 +165,6 @@ default AttributesBuilder put(String key, boolean... value) {
165165
return put(booleanArrayKey(key), toList(value));
166166
}
167167

168-
/**
169-
* Puts a generic ({@link Value}) attribute into this.
170-
*
171-
* <p>Note: It is strongly recommended to use {@link #put(AttributeKey, Object)}, and pre-allocate
172-
* your keys, if possible.
173-
*
174-
* @return this Builder
175-
*/
176-
default AttributesBuilder put(String key, Value<?> value) {
177-
if (value == null) {
178-
return this;
179-
}
180-
return put(valueKey(key), value);
181-
}
182-
183168
/**
184169
* Puts all the provided attributes into this Builder.
185170
*

0 commit comments

Comments
 (0)