addWithMap method
Records a measurement with attributes specified as a map.
This is a convenience method that converts the map to Attributes and calls add().
@param value The amount to increment the counter by (must be non-negative) @param attributeMap Map of attribute names to values
Implementation
@override
void addWithMap(T value, Map<String, Object> attributeMap) {
// Just convert to Attributes and call add
final attributes =
attributeMap.isEmpty ? null : attributeMap.toAttributes();
add(value, attributes);
}