-
Notifications
You must be signed in to change notification settings - Fork 593
Closed
Labels
A-commonArea:common issues that not related to specific pillarArea:common issues that not related to specific pillarenhancementNew feature or requestNew feature or request
Description
Attributes attached to a SpanBuilder are currently stored as a Vec<opentelemetry::KeyValue> - see docs.
This makes it impossible to access the value attached to a specific key or to verify that an attribute is present in O(1). It always take O(n), where n is the number of attributes - this can be significant.
Why was a Vec<KeyValue> chosen over a HashMap<Key, Value>?
I see it gets later processed into an EvictedHashMap when SpanBuilder gets converted into a Span 🤔
Metadata
Metadata
Assignees
Labels
A-commonArea:common issues that not related to specific pillarArea:common issues that not related to specific pillarenhancementNew feature or requestNew feature or request