Interface BatchProcessorConfig

All Superinterfaces:
ProcessorConfig, Prototype.Api
All Known Implementing Classes:
BatchProcessorConfig.BuilderBase.BatchProcessorConfigImpl

public interface BatchProcessorConfig extends Prototype.Api, ProcessorConfig
Configuration for a batch processor.
See Also:
  • Method Details

    • builder

      static BatchProcessorConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static BatchProcessorConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static BatchProcessorConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static BatchProcessorConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • scheduleDelay

      Optional<Duration> scheduleDelay()
      Delay between consecutive exports.
      Returns:
      delay between consecutive exports
    • maxQueueSize

      Optional<Integer> maxQueueSize()
      Maximum number of items retained before discarding excess unexported ones.
      Returns:
      maximum number of items kept
    • maxExportBatchSize

      Optional<Integer> maxExportBatchSize()
      Maximum number of items batched for export together. OpenTelemetry requires this value to not exceed the maxQueueSize().
      Returns:
      maximum number of items batched
    • timeout

      Optional<Duration> timeout()
      Maximum time an export can run before being cancelled.
      Returns:
      maximum export time