addEvent abstract method

Future<bool> addEvent(
  1. String name, {
  2. int? timestampMs,
  3. Map<String, String>? attributes,
})

Add an EmbraceSpanEvent with the given name. If timestampMs is null, the current time will be used. Optionally, the specific time of the event and a set of attributes can be passed in associated with the event. Returns false if the Event was definitely not successfully added. Returns true if the validation at the Embrace level has passed and the call to add the Event at the OpenTelemetry level was successful.

Implementation

Future<bool> addEvent(
  String name, {
  int? timestampMs,
  Map<String, String>? attributes,
});