Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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));
 }
Esempio n. 5
0
 public static global::OpenTracing.ITracer Create(Trace.Tracer tracer)
 {
     return(new TracerShim(tracer));
 }
Esempio n. 6
0
 private TracerShim(Trace.Tracer tracer)
 {
     this.tracer       = tracer ?? throw new ArgumentNullException(nameof(tracer));
     this.ScopeManager = new ScopeManagerShim(this.tracer);
 }