Example #1
0
 public SpanBuilder(string operationName, DateTimeOffset?startTimestamp)
 {
     OperationName  = operationName ?? throw new ArgumentNullException(nameof(operationName));
     StartTimestamp = startTimestamp;
     Baggage        = new Baggage();
     References     = new SpanReferenceCollection();
 }
Example #2
0
 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;
 }
Example #3
0
 public SpanBuilder(string operationName)
 {
     _operationName  = operationName ?? throw new ArgumentNullException(nameof(operationName));
     _baggage        = new Baggage();
     _spanReferences = new SpanReferenceCollection();
 }