SpanEvent class final

A timestamped point of interest inside a span.

Annotations
  • @immutable

Constructors

SpanEvent({required String name, required DateTime timestamp, Map<String, Object?> attributes = const <String, Object?>{}})
Creates a span event.

Properties

attributes → JsonMap
Structured detail about the event.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Short, low-cardinality name, such as first_token.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
When the event occurred, in UTC.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JsonMap
Serialises the event.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited