This pull request introduces a batching mechanism for metrics in the OTLP backend's flushing process. Previously, metrics were not batched, causing the size of requests to grow unbounded with increasing flush intervals and the number of metrics handled. This change ensures that metrics are batched according to a configurable batch size, with a default of 1000 metrics per batch.
This pull request introduces a batching mechanism for metrics in the OTLP backend's flushing process. Previously, metrics were not batched, causing the size of requests to grow unbounded with increasing flush intervals and the number of metrics handled. This change ensures that metrics are batched according to a configurable batch size, with a default of 1000 metrics per batch.