Пример #1
0
 public SpanContextPackage(string traceId, string spanId, bool sampled, Baggage baggage, SpanReferenceCollection references = null)
 {
     TraceId    = traceId;
     SpanId     = spanId;
     Sampled    = sampled;
     Baggage    = baggage;
     References = references;
 }
Пример #2
0
 public SpanBuilder(string operationName)
 {
     _operationName  = operationName ?? throw new ArgumentNullException(nameof(operationName));
     _baggage        = new Baggage();
     _spanReferences = new SpanReferenceCollection();
 }