/// <inheritdoc /> public SpanContext(string traceId, string spanId, Baggage baggage = null, string parentId = null) { TraceId = traceId; SpanId = spanId; ParentSpanId = parentId; _baggage.Merge(baggage); }
/// <inheritdoc /> public SpanContext(ulong traceId, ulong spanId, Baggage baggage = null, ulong parentId = 0L, string originalTraceId = null) { TraceIdValue = traceId; OriginalTraceId = originalTraceId ?? TraceId; SpanIdValue = spanId; ParentSpanIdValue = parentId; _baggage.Merge(baggage); }