summaryrefslogtreecommitdiff
path: root/statsd
Commit message (Collapse)AuthorAgeFilesLines
* Fix minor nits, spelling and unused importsfix-nitsJames Socol2018-08-211-1/+1
|
* Remove dependency on ABCMeta.James Socol2018-08-211-11/+3
| | | | | | | | | | | | | | StatsClientBase and PipelineBase are not intended to be public APIs, and the syntax for metaclasses introduces some complexity between Python 2 and 3. Since ABCMeta and abc.abstractmethod were only being used to guarantee that internal subclasses implemented these methods correctly, and there's no external behavioral issues on Python 3, where the metaclass has been ignored for years, let's remove the metaclass and rely on NotImplementedError() and the test suite as a backstop. Fixes #106.
* Skip IPv6 resolution testJames Socol2018-08-211-0/+2
| | | | | | | | | | | | | | | Since early June[1], IPv6 loopback address resolution has been flaky on TravisCI. It seems that it should have been flaky even earlier, or there's something strange going on. For now, skip the test. We can come back to diagnosing once master is (otherwise) passing. This failure first started on Python 2.6, but quickly spread to all versions. It appears to pass occasionally, but not on any consistent version. Lately it seems to fail more or less all the time, though on the latest cron build, it did pass on Pypy[2]. [1]: https://travis-ci.org/jsocol/pystatsd/builds/387167216 [2]: https://travis-ci.org/jsocol/pystatsd/builds/417687774
* Bug: Fix timer decorator with partial functions (#85)Mathieu Leplatre2017-08-302-2/+22
|
* Bug: Fix time shifts for python 3.3 and above.Sam Pegler2017-07-111-5/+12
|
* fix assert_called_once() callsLogan Rosen2015-11-211-3/+2
|
* Version 3.2.1James Socol2015-10-221-1/+1
|
* Don't break compatibility with code that uses ordered args instead ofIan Moore2015-10-221-4/+4
| | | kwargs
* Version 3.2v3.2James Socol2015-10-191-1/+1
|
* Future-proof float formattingJames Socol2015-10-191-1/+1
|
* Updated statsd client to allow less than 1 ms timingStephen Bunn2015-09-012-16/+15
|
* Ignore RuntimeErrors together with socket errorsJakub Stasiak2015-08-031-1/+1
| | | | | | | | | | When Python's standard library is patched with Eventlet the exception raised when two threads access the same socket simultaneously is RuntimeError and I think it makes sense to include it here. The downside is it may start ignoring too wide variety of exceptions but on the other hand I can't think of any other RuntimeErrors that can be raised here.
* Run flake8 on travis.James Socol2015-03-261-4/+0
|
* Handle IPv6 in default clientsJames Socol2015-03-263-2/+7
|
* Make IPv6 opt-in an explicit choice.James Socol2015-03-262-13/+41
|
* Version 3.1James Socol2015-03-181-1/+1
|
* Add TCPStatsClient and TCPPipelineMauro Stettler2015-03-173-4/+306
|
* Refactor tests to allow for multiple protocolsMauro Stettler2015-03-171-207/+388
|
* refactor StatsClient and Pipeline into base classesMauro Stettler2015-03-171-16/+50
|
* add ipv6 supportkeras2014-10-012-2/+9
|
* Optimize Pipeline by using a dequeDavid Blewett2014-08-121-4/+5
| | | | | | | | | This section of code is going to be pretty hot; it's best to optimize it as much as possible. It might be worth it to switch to a list for the data variable as well, and use '\n'.join(data) (vs. string concatenation). From: https://docs.python.org/2/library/collections.html#collections.deque "Though list objects support similar operations, they are optimized for fast fixed-length operations and incur O(n) memory movement costs for pop(0) and insert(0, v) operations which change both the size and position of the underlying data representation."
* Version 3.0.1v3.0.1James Socol2014-07-271-1/+1
|
* Made Timer.__call__ thread-safeBlake Caldwell2014-07-272-16/+36
|
* Version 3.0James Socol2014-05-091-1/+1
|
* Update test envs and trove classifiersJames Socol2014-05-091-1/+1
|
* Move default instances out of __init__.pyJames Socol2014-05-094-37/+35
|
* Version 2.1.2v2.1.2James Socol2014-01-071-1/+1
|
* Close gaps in client coverage.James Socol2014-01-071-0/+27
|
* Handle negative absolute gauges.James Socol2014-01-072-2/+37
| | | | | | | | - For negative absolute gauge values, zero out the gauge first, since StatsD can't distinguish it from a delta. - Add tests. - Patch via Ben Gilbert (https://github.com/bgilbert) - Fixes #40.
* Version 2.1.1v2.1.1James Socol2014-01-031-1/+1
|
* Fix timers used as decorators.James Socol2014-01-032-1/+6
|
* Do versioning simpler.v2.1James Socol2014-01-032-3/+2
|
* Version 2.1.James Socol2014-01-032-2/+3
|
* Guard against empty- or double- sending.James Socol2014-01-032-0/+25
|
* Rename some tests for clarityJames Socol2014-01-031-4/+4
|
* Give timers manual start/stop methods.James Socol2014-01-033-11/+63
|
* Merge pull request #38 from aleasoluciones/masterJames Socol2013-11-251-24/+16
|\ | | | | Small refactor to StatsClient
| * Refactor StatsClientGuillermo Pascual2013-11-191-24/+16
| |
* | add maxudpsize optiontrbs2013-09-172-4/+8
|/ | | | | | | | | allows to control the maximum udp packet size. when pipelining a lot of metrics within a controlled network or to 127.0.0.1 it can be desirable to lower the number of udp packets by sending larger onces. the documentation reflects that this option is not for the faint hearted, should not be used on the internet and should be handled with extreme care.
* Version 2.0.3.v2.0.3James Socol2013-08-271-1/+1
|
* Update gauge delta tests.James Socol2013-08-261-10/+12
|
* Handle very large numbers correctly.James Socol2013-08-262-4/+21
|
* Don't skip the _after step from Pipelines.James Socol2013-08-261-2/+2
|
* Revert "Added suffix parameter"James Socol2013-07-273-26/+5
| | | | | | | | | | | | | | | This reverts commit 3c4ec687273416b355c20282e33249d87cd84b52. Given graphite's support for wildcards anywhere in the chain, this is an unnecessary complication. The same thing can be achieved with the prefix, e.g.: >>> import socket; >>> host, _, _ = socket.gethostname().partition('.') >>> prefix = 'my_app.' + host >>> client = StatsClient(prefix=prefix) Stats can be accessed in aggregate as 'stats.my_app.*.whatever.stat'.
* Merge remote-tracking branch 'spil-jasper/master'James Socol2013-07-243-5/+26
|\
| * Added suffix parameterJasper Capel2013-04-233-5/+26
| | | | | | | | | | | | Added a statsd suffix that works just like the prefix, but appends to the metric's key instead Added tests Updated documentation
* | Merge remote-tracking branch 'ustudio/master'James Socol2013-07-242-0/+22
|\ \
| * | Testing non-integer values for the set data typeThomas Stephens2013-04-261-1/+5
| | |
| * | Adding the 'set' data type to the clientThomas Stephens2013-04-262-0/+18
| | |
* | | Version bump 2.0.2v2.0.2James Socol2013-07-241-1/+1
| | |