Exemple #1
0
 public AsyncQueueTraceDispatcher(ISkrTraceCollect skrTraceCollect, IOptions <SkrTraceOptions> skrTraceOptions)
 {
     _skrTraceOptions = skrTraceOptions.Value;
     _skrTraceCollect = skrTraceCollect;
     _segmentQueue    = new ConcurrentQueue <TraceSegmentRequest>();
     _cancellation    = new CancellationTokenSource();
 }
 public TraceSegmentTransportService(ITraceDispatcher dispatcher, IRuntimeEnvironment runtimeEnvironment, IOptions <SkrTraceOptions> skrTraceOptions) : base(runtimeEnvironment)
 {
     _dispatcher      = dispatcher;
     _skrTraceOptions = skrTraceOptions.Value;
     Period           = TimeSpan.FromMilliseconds(_skrTraceOptions.Interval);
     TracingContext.ListenerManager.Add(this);
 }
Exemple #3
0
 public HttpClientDiagnosticProcessor(IContextCarrierFactory contextCarrierFactory, IOptions <SkrTraceOptions> skrTraceOptions)
 {
     _contextCarrierFactory = contextCarrierFactory;
     _skrTraceOptions       = skrTraceOptions.Value;
 }