W3cTraceContext class

Helpers for W3C Trace Context header injection and extraction.

See https://www.w3.org/TR/trace-context/

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 traceparent header value into a SpanContext.
fromSpanContext(SpanContext spanContext) → String?
Builds a W3C traceparent header value from spanContext.
injectCurrent(Map<String, String> headers) → Future<void>
Injects the current span's traceparent header into headers.
injectCurrentSync(Map<String, dynamic> headers) → void
Injects the current span's traceparent header into headers without calling the platform.