Пример #1
0
 public WorkQueue(ISender sender, WorkQueueOptions options, ClientMetrics metrics)
 {
     this.sender  = sender ?? throw new ArgumentNullException(nameof(sender));
     this.metrics = metrics ?? throw new ArgumentNullException(nameof(metrics));
     this.options = options ?? throw new ArgumentNullException(nameof(options));
     queue        = new BlockingCollection <Span>(options.MaxQueueSize);
 }
Пример #2
0
 public RemoteReporter(ISender sender, WorkQueueOptions options, ClientMetrics metrics)
 {
     this.metrics = metrics ?? throw new ArgumentNullException(nameof(metrics));
     workQueue    = new WorkQueue(sender, options, metrics);
 }