ActivityContext
ActivityContext representation conforms to the w3c TraceContext specification. It contains two identifiers
a TraceId and a SpanId - along with a set of common TraceFlags and system-specific TraceState values.
IsRemote indicates if the ActivityContext was propagated from a remote parent.
The span identifier
These flags are defined by the W3C standard along with the ID for the activity.
The trace identifier
Holds the W3C 'tracestate' header as a string.
public ActivityContext(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags traceFlags, string traceState = null, bool isRemote = false)
Construct a new object of ActivityContext.
Parse W3C trace context headers to ActivityContext object.
public static bool TryParse(string traceParent, string traceState, bool isRemote, out ActivityContext context)
Parse W3C trace context headers to ActivityContext object.
Parse W3C trace context headers to ActivityContext object.