public void SetUp() { traceReporter = Substitute.For <ITraceReporter>(); transport = Substitute.For <ITransport>(); transportWithTracing = new TransportWithTracing(transport); Trace.Configuration.Reporter = traceReporter; }
public SpanBuilder( ITraceReporter traceReporter, PoolHandle <Span> spanHandle, TraceContextScope contextScope, ITraceConfiguration configuration) { this.traceReporter = traceReporter; this.spanHandle = spanHandle; this.contextScope = contextScope; this.configuration = configuration; stopwatch = Stopwatch.StartNew(); parentSpan = Context.Properties.Get <Span>(spanContextKey); spanContextScope = Context.Properties.Use(spanContextKey, Span); InitializeSpan(); EnrichSpanWithInheritedFields(); EnrichSpanWithContext(); }
public void SetUp() { traceReporter = Substitute.For <ITraceReporter>(); Trace.Configuration.Reporter = traceReporter; tracingModule = new TracingModule("serviceName"); }
public void SetUp() { traceReporter = Substitute.For <ITraceReporter>(); Trace.Configuration.Reporter = traceReporter; Trace.Configuration.InheritedFieldsWhitelist.Clear(); }