You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
Span._empty_attributes is a default mutable when the user (incorrectly) accesses a span's attributes directly. We can solve this by doing
if not attributes:
self.attributes = BoundedDict.from_map(MAX_NUM_ATTRIBUTES)
else:
self.attributes = BoundedDict.from_map(
MAX_NUM_ATTRIBUTES, attributes
)
i.e. deepcopying.
The text was updated successfully, but these errors were encountered:
Describe your environment
Python 3.7. Irrelevant.
Steps to reproduce
What is the expected behavior?
What is the actual behavior?
Additional context
Span._empty_attributes is a default mutable when the user (incorrectly) accesses a span's attributes directly. We can solve this by doing
i.e. deepcopying.
The text was updated successfully, but these errors were encountered: