public SpanBuilder(string operationName, DateTimeOffset?startTimestamp) { OperationName = operationName ?? throw new ArgumentNullException(nameof(operationName)); StartTimestamp = startTimestamp; Baggage = new Baggage(); References = new SpanReferenceCollection(); }
public SpanContext(string traceId, string spanId, bool sampled, Baggage baggage, SpanReferenceCollection references) { TraceId = traceId; SpanId = spanId; Sampled = sampled; Baggage = baggage ?? throw new ArgumentNullException(nameof(baggage)); References = references ?? SpanReferenceCollection.Empty; }
public SpanBuilder(string operationName) { _operationName = operationName ?? throw new ArgumentNullException(nameof(operationName)); _baggage = new Baggage(); _spanReferences = new SpanReferenceCollection(); }