DataDog/dogstatsd-python — pull request #19 by bunelr (2014-05-19 20:17:14+00:00)
Title: Metrics batching

Allow to send several metrics in one UDP packets, by separating them with `\n`

Can be used as a context manager:

````python
with DogStatsd() as batched_statsd:
batched_statsd.gauge('my.gauge', 10)
batched_statsd.timing('my.timer', 123)

````

will send them both in a single packet. If too many metrics are to be sent at the same time, they are going to be sent into several packets to avoid the limitations due to the UDP packets size.

@clutchski