Exemplo n.º 1
0
 internal SpanExporter(SpanExporterWorker worker)
 {
     this.worker       = worker;
     this.workerThread = new Thread(worker.Run)
     {
         IsBackground = true,
         Name         = "SpanExporter",
     };
     this.workerThread.Start();
 }
Exemplo n.º 2
0
        internal static ISpanExporter Create(int bufferSize, Duration scheduleDelay)
        {
            var worker = new SpanExporterWorker(bufferSize, scheduleDelay);

            return(new SpanExporter(worker));
        }
        public static ISpanExporter Create(int bufferSize = 32, TimeSpan?scheduleDelay = null)
        {
            var worker = new SpanExporterWorker(bufferSize, scheduleDelay ?? TimeSpan.FromSeconds(5));

            return(new SpanExporter(worker));
        }