BatchSpanProcessor constructor

BatchSpanProcessor(
  1. SpanExporter _exporter, {
  2. int maxExportBatchSize = _DEFAULT_MAXIMUM_BATCH_SIZE,
  3. int scheduledDelayMillis = _DEFAULT_EXPORT_DELAY,
})

Implementation

BatchSpanProcessor(this._exporter,
    {int maxExportBatchSize = _DEFAULT_MAXIMUM_BATCH_SIZE,
    int scheduledDelayMillis = _DEFAULT_EXPORT_DELAY})
    : _maxExportBatchSize = maxExportBatchSize,
      _maxQueueSize = _DEFAULT_MAXIMUM_QUEUE_SIZE {
  _timer = Timer.periodic(
      Duration(milliseconds: scheduledDelayMillis), _exportBatch);
}