NoopTracer class
The No-op implementation of AbstractTracer in which all operations are no-op
- Inheritance
-
- Object
- AbstractTracer
- NoopTracer
Constructors
Properties
- activeSpan → Span?
-
Returns the activer Span. This is a shorthand for
Tracer.scopeManager().active().span()
and null will be returned if ScopeManager.active()} is null.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scopeManager ↔ ScopeManager?
-
Returns the current ScopeManager, which may be a noop but may not be
null.
getter/setter pairoverride
Methods
-
childOf(
SpanContext spanContext) → Reference -
Returns a new ChildOf reference.
inherited
-
extract(
String format, dynamic carrier) → SpanContext? -
Returns a SpanContext instance extracted from
carrier
in the givenformat
.override -
flush(
) → Future -
Request that any buffered or in-memory data is flushed out of the process.
Optionally a callback function with the signature
function(err)
will be called as soon as the flush completes.err
should be null or undefined if the flush was successful.override -
followsFrom(
SpanContext spanContext) → Reference -
Returns a new FollowsFrom reference.
inherited
-
inject(
SpanContext spanContext, String format, dynamic carrier) → void -
Injects the given SpanContext instance for cross-process propagation
within
carrier
. The expected type ofcarrier
depends on the value of `format.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startSpan(
String operationName, {SpanContext? childOf, List< Reference> ? references, Map<String, dynamic> ? tags, DateTime? startTime}) → NoopSpan -
Starts and returns a new Span representing a logical unit of work.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited