W3cTraceContext class
Helpers for W3C Trace Context header injection and extraction.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
extract(
String? header) → SpanContext? -
Parses a W3C
traceparentheader value into aSpanContext. -
fromSpanContext(
SpanContext spanContext) → String? -
Builds a W3C
traceparentheader value fromspanContext. -
injectCurrent(
Map< String, String> headers) → Future<void> -
Injects the current span's
traceparentheader intoheaders. -
injectCurrentSync(
Map< String, dynamic> headers) → void -
Injects the current span's
traceparentheader intoheaderswithout calling the platform.