Behavior of OpenTelemetry Collector batch processor flush during shutdown with limited timeout
Goal: ensure that when the OpenTelemetry Collector receives a shutdown signal, all spans and metrics held in the batch processor are exported without loss. Constraints: the batch processor flushes its queue on shutdown but only for a configurable timeout; if the timeout expires before the queue is drained, remaining items may be dropped. Meanwhile, the proce