BatchObservableResult class abstract
Passed to a BatchObservableCallback to record observations.
The observe method accepts num (not a generic T) because a single
batch callback may observe across instruments with different numeric
types (e.g., Counter<int> and Gauge<double>). The no-op API layer
does not validate the value type; the SDK may runtime-check it.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
APIObservableInstrument instrument, num value, [Attributes? attributes]) → void -
Records a measurement for
instrumentwithvalueand optionalattributes. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited