NoopSpanContext class

The no-op implementation of SpanContext in which all operations are No-op

Inheritance

Constructors

NoopSpanContext()

Properties

baggage Map
Baggage is a set of key:value pairs stored in a Span (and its SpanContext) and propagated in-band to all child Spans and their SpanContexts: in this way, the “Baggage” travels with the trace, hence the name. Given a full-stack OpenTracing integration, Baggage enables powerful functionality by transparently propagating arbitrary application data: for example, an end-user id may be added as a Baggage item in a mobile app, propagate (via the distributed tracing machinery) into the depths of a storage system, and recovered at the bottom of the stack to identify a particularly expensive SQL query.
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
sampled bool
A SpanContext may optionally indicate if they are sampled or not.
getter/setter pairinherited
spanId ↔ dynamic
Every SpanContext has an associated spanId.
getter/setter pairinherited
traceId ↔ dynamic
Every SpanContext has an associated traceId.
getter/setter pairinherited

Methods

forEachBaggageItem(Function baggageHandler) → void
ForeachBaggageItem grants access to all baggage items stored in the SpanContext. The handler function will be called for each baggage key/value pair. The ordering of items is not guaranteed.
override
getBaggageItem(dynamic key) → dynamic
Returns the value for a baggage item given its key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBaggageItem(dynamic key, dynamic value) → void
Sets a key:value pair on this SpanContext that also propagates to future children of the associated Span.
override
toString() String
A string representation of this object.
inherited

Operators

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