-
Notifications
You must be signed in to change notification settings - Fork 900
Open
Labels
Feature RequestSuggest an idea for this projectSuggest an idea for this project
Description
Currently, we have only one implementation io.opentelemetry.api.internal.InternalAttributeKeyImpl
for io.opentelemetry.api.common.AttributeKey
, and we may have more implementation for that, for example:
- Make the all attributes in
io.opentelemetry.semconv.trace.attributes.SemanticAttributes
SemanticAttributeImpl
public class SemanticAttributeImpl<T> implements AttributeKey<T> {}
- Make the SemanticAttributes that can be recored into metrics MetricsSemanticAttributes
public class MetricsSemanticAttributes<T> extends SemanticAttributeImpl {}
- Make the other attributes CustomAttributeImpl
If AttributeKey is classified, we can do a lot of performance optimisation. For example, we can filter out MetricsAttributes of SemanticAttributes by just calling xx.getclass().equals(MetricsAttributes)
instead of traversing it.
Metadata
Metadata
Assignees
Labels
Feature RequestSuggest an idea for this projectSuggest an idea for this project