Beispiel #1
0
 public void SetUp()
 {
     traceReporter                = Substitute.For <ITraceReporter>();
     transport                    = Substitute.For <ITransport>();
     transportWithTracing         = new TransportWithTracing(transport);
     Trace.Configuration.Reporter = traceReporter;
 }
Beispiel #2
0
        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");
 }
Beispiel #4
0
 public void SetUp()
 {
     traceReporter = Substitute.For <ITraceReporter>();
     Trace.Configuration.Reporter = traceReporter;
     Trace.Configuration.InheritedFieldsWhitelist.Clear();
 }