atlassian / gostatsd

An implementation of Etsy's statsd in Go with tags support
MIT License
381 stars 99 forks source link

Support batch sending metrics for OTLP backend #713

Closed hstan closed 1 month ago

hstan commented 1 month ago

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.