recordWithMap method

void recordWithMap(
  1. T value,
  2. Map<String, Object> attributeMap
)

Records a value with the given map of attributes.

value The value to record. attributeMap A map of attribute key-value pairs.

Implementation

void recordWithMap(T value, Map<String, Object> attributeMap) {
  // Convert map to Attributes and delegate to record
  final attributes =
      attributeMap.isEmpty ? null : attributeMap.toAttributes();
  record(value, attributes);
}