SpanContext class

Representation of the context of an individual span.

Constructors

SpanContext(TraceId traceId, SpanId spanId, int traceFlags, TraceState traceState)
Construct a SpanContext.
SpanContext.fromJson(Map<String, dynamic> json)
factory
SpanContext.invalid()
Construct an invalid SpanContext.
SpanContext.remote(TraceId traceId, SpanId spanId, int traceFlags, TraceState traceState)
Construct a SpanContext representing an operation which originated from a remote source.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isRemote → bool
final
isValid → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spanId → SpanId
final
traceFlags → int
final
traceId → TraceId
final
traceState → TraceState
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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