sivy / pystatsd

Python implementation of the Statsd client/server
http://pypi.python.org/pypi/pystatsd/
BSD 2-Clause "Simplified" License
358 stars 87 forks source link

fix timer handling, handle multimetric transmissions #69

Closed rjbs closed 11 years ago

rjbs commented 11 years ago

This branch has three related changes:

  1. do not treat any unknown type data as a counter; drop it and warn
  2. when a timer is flushed, delete it rather than resetting it; resetting was leading to fatal errors
  3. accept transmissions containing multiple metrics at once, and cope with trailing newlines

Each issue is explained slightly more in detail on the relevant commit.

Without these changes: