BatchLogRecordProcessorConfig class

Configuration for the BatchLogRecordProcessor.

This class configures how the batch log record processor behaves, including queue size limits, export scheduling, and batch size parameters.

Constructors

BatchLogRecordProcessorConfig({int maxQueueSize = defaultMaxQueueSize, Duration scheduleDelay = defaultScheduleDelay, int maxExportBatchSize = defaultMaxExportBatchSize, Duration exportTimeout = defaultExportTimeout})
Creates a new configuration for a BatchLogRecordProcessor.
const
BatchLogRecordProcessorConfig.fromBlrpEnvironmentValues(BlrpEnvironmentValues env)
Creates a configuration from pre-read BLRP environment values.
factory
BatchLogRecordProcessorConfig.fromEnvironment()
Creates a configuration by reading OTEL_BLRP_* environment variables via OTelEnv. Falls back to standard OTel defaults if variables are missing or invalid.
factory

Properties

exportTimeout → Duration
The amount of time to wait for an export to complete before timing out.
final
hashCode → int
The hash code for this object.
no setterinherited
maxExportBatchSize → int
The maximum batch size of log records that can be exported at once.
final
maxQueueSize → int
The maximum queue size for log records. After this is reached, log records will be dropped.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheduleDelay → Duration
The delay between two consecutive exports.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultExportTimeout → const Duration
Default export timeout per OTel spec (30 seconds).
defaultMaxExportBatchSize → const int
Default maximum export batch size per OTel spec.
defaultMaxQueueSize → const int
Default maximum queue size per OTel spec.
defaultScheduleDelay → const Duration
Default schedule delay per OTel spec (1 second).
noLimit → const Duration
Stand-in for "no limit": OTEL_BLRP_EXPORT_TIMEOUT=0 means no timeout per spec, represented as the max milliseconds in a 32-bit integer (~24.8 days). Web-safe and within Dart timer limits for Future.timeout().