A handle to a live span, handed to the wrapped function.
Exposes just enough to correlate traces and to annotate the current span mid-execution, without leaking any OpenTelemetry types.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spanId → String
-
The span id, or an empty string when unknown / not instrumented.
no setter
- traceId → String
-
The trace id, or an empty string when unknown / not instrumented.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setMetadata(
Map< String, Object?> metadata) → void - Attaches custom metadata to the current span.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited