Instrumentation class abstract interface

A pluggable telemetry instrumentation provider.

The Instrumentation.runInNewSpan hook behaves like middleware: it receives a next function and is expected to invoke it (usually inside its own span), then return its result. Providers may inspect the awaited result to record outputs, catch errors to record exceptions, and propagate their own context around the next call.

Configure providers via configureInstrumentation (see instrumentation.dart).

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
runInNewSpan<O>(SpanMetadata metadata, Future<O> next([SpanContext? span])) Future<O>
Wraps next in a new span described by metadata.
toString() String
A string representation of this object.
inherited

Operators

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