spanEventNow static method

SpanEvent spanEventNow(
  1. String name,
  2. Attributes attributes
)

Creates a span event with the current timestamp.

This is a convenience method that calls spanEvent with the current time.

Implementation

static SpanEvent spanEventNow(String name, Attributes attributes) {
  _getAndCacheOtelFactory();
  return spanEvent(name, attributes, DateTime.now());
}