-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Is your feature request related to a problem? Please describe.
The Bulk processor controls the batch size via send_batch_size
which is the number of spans or metrics. However the spans can vary in size and therefore it would be useful to instruct the batch processor to send the batch once a size in bytes is reached.
Describe the solution you'd like
Add send_batch_size_bytes
to the Batch processor https://github.com/open-telemetry/opentelemetry-collector/blob/master/processor/batchprocessor/README.md#batch-processor
The batch processor will send the batch once size in bytes is reached.
Describe alternatives you've considered
Additional context
In Jaeger we would like to put the batch processor in front of ES exporter that uses Elasticsearch bulk API (sends multiple requests in batch). Hence we would like to control how much data is sent to the storage.
Related to jaegertracing/jaeger#2295.