AbstractTracer class abstract

AbstractTracer provides the abstract definition for a Tracer and contains some default method implementations.

Implementers

Constructors

AbstractTracer()

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 setter
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 pair

Methods

childOf(SpanContext spanContext) Reference
Returns a new ChildOf reference.
extract(String format, dynamic carrier) SpanContext?
Returns a SpanContext instance extracted from carrier in the given format.
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.
followsFrom(SpanContext spanContext) Reference
Returns a new FollowsFrom reference.
inject(SpanContext spanContext, String format, dynamic carrier) → void
Injects the given SpanContext instance for cross-process propagation within carrier. The expected type of carrier depends on the value of `format.
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}) Span?
Starts and returns a new Span representing a logical unit of work.
toString() String
A string representation of this object.
inherited

Operators

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