OpenTelemetry.Trace.SpanContext
A struct that represents a span context. A span context contains the portion of a span
that must propagate to child TelemetrySpan and across process boundaries.
It contains the identifiers ActivityTraceIdand ActivitySpanId
associated with the TelemetrySpan along with a set of
common TraceFlags and system-specific TraceState values>.
Gets a value indicating whether this SpanContext
was propagated from a remote parent.
Gets a value indicating whether this SpanContext is valid.
Gets the ActivitySpanId associated with this SpanContext.
Gets the ActivityTraceFlags associated with this SpanContext.
Gets the ActivityTraceId associated with this SpanContext.
Gets the TraceState associated with this SpanContext.
public SpanContext(ref ActivityTraceId traceId, ref ActivitySpanId spanId, ActivityTraceFlags traceFlags, bool isRemote = false, IEnumerable<KeyValuePair<string, string>> traceState = null)
Initializes a new instance of the SpanContext struct with the given identifiers and options.
Initializes a new instance of the SpanContext struct with the given identifiers and options.
Compare two SpanContext for equality.
Converts a SpanContext into an ActivityContext.
Compare two SpanContext for not equality.