示例#1
0
 public TracingScope(string name, string resource, string service, string type, TracingManager manager, ulong traceId, ulong?parentId)
 {
     this.Name     = name;
     this.Resource = resource;
     this.Service  = service;
     this.Type     = type;
     this.TraceId  = traceId;
     this.SpanId   = Span.BuildRandomId();
     this.start    = Span.ToNanoseconds(DateTime.UtcNow);
     this.duration = ThreadSafeUtil.RentStopwatchStartNew();
     this.manager  = manager;
     this.spans    = new StructBuffer <Span>(4);
     this.parentId = parentId;
 }
示例#2
0
 public TracingScope(string name, string resource, string service, string type, TracingManager manager)
     : this(name, resource, service, type, manager, Span.BuildRandomId(), null)
 {
 }