Skip to content

Vararg versions of AttributeBuilder.put(AttributeKey<List<?>>) #4172

Description

@anuraaga

We currently have vararg versions of AttributesBuilder put methods that accept a string key

https://github.com/open-telemetry/opentelemetry-java/blob/main/api/all/src/main/java/io/opentelemetry/api/common/AttributesBuilder.java#L96

But we don't have similar for AttributeKey. This means that you can't take code that uses a vararg String key and "optimize it" by replacing the key with AttributeKey, you currently need to also add Arrays.asList. I think having symmetry here would be good.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions