Attributes class

A representation of a collection of metadata attached to a trace span.

Constructors

Attributes.empty()
Instantiate an empty Attributes.

Properties

hashCode int
The hash code for this object.
no setterinherited
keys Iterable<String>
Retrieve the keys of all Attributes in this collection.
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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