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); }
public RemoteReporter(ISender sender, WorkQueueOptions options, ClientMetrics metrics) { this.metrics = metrics ?? throw new ArgumentNullException(nameof(metrics)); workQueue = new WorkQueue(sender, options, metrics); }