opentelemetry.attributes

class opentelemetry.attributes.BoundedAttributes(maxlen=None, attributes=None, immutable=True, max_value_len=None, extended_attributes=False)[source]

Bases: MutableMapping

An ordered dict with a fixed max capacity.

Oldest elements are dropped when the dict is full and a new element is added.

copy()[source]