ActivityContext
A representation that 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.
Indicates if the activity context was propagated from a remote parent.
The Id of the request as known by the caller.
The flags defined by the W3C standard along with the ID for the activity.
The trace identifier.
Holds the W3C 'tracestate' header.
public ActivityContext(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags traceFlags, string traceState = null, bool isRemote = false)
Construct a new activity context instance using the specified arguments.
Determines whether two specified ActivityContext values are equal.
Determines whether two specified ActivityContext values are not equal.
Parses a W3C trace context headers to an ActivityContext object.
public static bool TryParse(string traceParent, string traceState, bool isRemote, out ActivityContext context)
Tries to parse the W3C trace context headers to the ActivityContext object.
Tries to parse the W3C trace context headers to an ActivityContext object.
Indicates whether the current object is equal to another object of the same type.