addTags abstract method

void addTags(
  1. Map<String, dynamic> keyValuePairs
)

Adds a single tag to the Span. See addTags() for details. Adds the given key value pairs to the set of Span tags.

Multiple calls to addTags() results in the tags being the superset of all calls.

The behavior of setting the same key multiple times on the same Span is undefined.

The supported type of the values is implementation-dependent. Implementations are expected to safely handle all types of values but may choose to ignore unrecognized values (e.g. objects with cyclic references, function objects).

Implementation

void addTags(Map<String, dynamic> keyValuePairs);