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; }
public TracerShimTests() { tracer = TracerFactory.Create(b => b.SetProcessor(e => new SimpleSpanProcessor(e))).GetTracer(null); }
private TracerShim(Trace.ITracer tracer) { this.tracer = tracer ?? throw new ArgumentNullException(nameof(tracer)); this.ScopeManager = new ScopeManagerShim(this.tracer); }
public static global::OpenTracing.ITracer Create(Trace.ITracer tracer) { return(new TracerShim(tracer)); }
public ScopeManagerShim(Trace.ITracer tracer) { this.tracer = tracer ?? throw new ArgumentNullException(nameof(tracer)); }