Attributes class
A representation of a collection of metadata attached to a trace span.
Constructors
- Attributes.empty()
- Instantiate an empty Attributes.
Properties
Methods
-
add(
Attribute attribute) → void -
Add an Attribute
attribute
. If an Attribute with the same key already exists, it will be overwritten. -
addAll(
List< Attribute> attributes) → void -
Add all Attributes in List
attributes
. If an Attribute with the same key already exists, it will be overwritten. -
get(
String key) → Object? -
Retrieve the value associated with the Attribute with key
key
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited