addAttribute abstract method

Future<bool> addAttribute(
  1. String key,
  2. String value
)

Add the given key-value pair as an Attribute to the Event. Returns false if the Attribute was definitely not added. Returns true if the validation at the Embrace Level has passed and the call to add the Attribute at the OpenTelemetry level was successful.

Implementation

Future<bool> addAttribute(String key, String value);