-
public class RemoteSpanContext.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static RemoteSpanContext.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final StringencodeAsTraceParent(SpanContext context)final RemoteSpanContextparseTraceParent(String traceParent)Parses a traceparentheader string into a RemoteSpanContext object.final RemoteSpanContextparseTraceParentOrNull(String traceParent)Parses a traceparentheader string into a RemoteSpanContext object.-
-
Method Detail
-
encodeAsTraceParent
final String encodeAsTraceParent(SpanContext context)
-
parseTraceParent
final RemoteSpanContext parseTraceParent(String traceParent)
Parses a
traceparentheader string into a RemoteSpanContext object. This expects the string to be in the W3C traceparent header format defined as part of the W3C Trace Context specification (version00).Trace flags are currently ignored (but must still be valid).
-
parseTraceParentOrNull
final RemoteSpanContext parseTraceParentOrNull(String traceParent)
Parses a
traceparentheader string into a RemoteSpanContext object. This expects the string to be in the W3C traceparent header format defined as part of the W3C Trace Context specification (version00).Trace flags are currently ignored (but must still be valid).
Returns
nullif the string cannot be parsed.
-
-
-
-