public TracerShim(Trace.Tracer tracer, ITextFormat textFormat) { this.tracer = tracer ?? throw new ArgumentNullException(nameof(tracer)); this.textFormat = textFormat ?? throw new ArgumentNullException(nameof(textFormat)); this.ScopeManager = new ScopeManagerShim(this.tracer); }
public SpanBuilderShim(Trace.Tracer 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 TracerShim(Trace.Tracer tracer, TextMapPropagator textFormat) { Guard.ThrowIfNull(tracer); Guard.ThrowIfNull(textFormat); this.tracer = tracer; this.propagator = textFormat; this.ScopeManager = new ScopeManagerShim(this.tracer); }
public ScopeManagerShim(Trace.Tracer tracer) { this.tracer = tracer ?? throw new ArgumentNullException(nameof(tracer)); }
public static global::OpenTracing.ITracer Create(Trace.Tracer tracer) { return(new TracerShim(tracer)); }
private TracerShim(Trace.Tracer tracer) { this.tracer = tracer ?? throw new ArgumentNullException(nameof(tracer)); this.ScopeManager = new ScopeManagerShim(this.tracer); }