예제 #1
0
        public AsyncRecorder(SpanDispatcher dispatcher, RecorderMetrics metrics)
        {
            _dispatcher = dispatcher;
            _metrics    = metrics;

            new Thread(ThreadWorkProc)
            {
                IsBackground = true,
                Name         = "ZipkinRecorder"
            }.Start();
        }
예제 #2
0
 /// <summary>
 /// Configures which span dispatcher to use. By default we'll use <see cref="RestSpanDispatcher"/>
 /// </summary>
 public ZipkinBootstrapper DispatchTo(SpanDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
     return(this);
 }