Пример #1
0
 public SpanBuilderShim(Trace.ITracer tracer, string spanName, IList <string> rootOperationNamesForActivityBasedAutoCollectors = null)
 {
     this.tracer       = tracer ?? throw new ArgumentNullException(nameof(tracer));
     this.spanName     = spanName ?? throw new ArgumentNullException(nameof(spanName));
     this.ScopeManager = new ScopeManagerShim(this.tracer);
     this.rootOperationNamesForActivityBasedAutoCollectors = rootOperationNamesForActivityBasedAutoCollectors ?? this.rootOperationNamesForActivityBasedAutoCollectors;
 }
Пример #2
0
 public TracerShimTests()
 {
     tracer = TracerFactory.Create(b => b.SetProcessor(e => new SimpleSpanProcessor(e))).GetTracer(null);
 }
Пример #3
0
 private TracerShim(Trace.ITracer tracer)
 {
     this.tracer       = tracer ?? throw new ArgumentNullException(nameof(tracer));
     this.ScopeManager = new ScopeManagerShim(this.tracer);
 }
Пример #4
0
 public static global::OpenTracing.ITracer Create(Trace.ITracer tracer)
 {
     return(new TracerShim(tracer));
 }
Пример #5
0
 public ScopeManagerShim(Trace.ITracer tracer)
 {
     this.tracer = tracer ?? throw new ArgumentNullException(nameof(tracer));
 }