Commit Graph

71 Commits

Author SHA1 Message Date
scarytom be0b4fd1f0 extract a class for the UDP sending, making it easier to play with batching implementations for issue #15 2014-08-26 18:02:42 +01:00
scarytom 26765c9c13 convert to NIO for #20 -- still unsure as to whether this is justified 2014-08-26 16:32:13 +01:00
Tom Denley a851a996f0 bump version number in preparation for a release 2014-08-18 09:12:54 +01:00
Tom Denley 123c46bd87 Merge pull request to support double values for gauges, with some minor tweaks -- references #23 and #19. 2014-08-15 12:04:43 +01:00
Tom Denley 0fc6627f18 move method up, for clarity 2014-08-15 12:04:30 +01:00
Tom Denley c6b9289c4e minor efficiency gains 2014-08-15 12:03:39 +01:00
Tom Denley 69fd534c6a avoid formatter usage for long values 2014-08-15 11:29:52 +01:00
Tom Denley e5795d6c9d add missing JavaDoc for new gauge methods taking doubles 2014-08-15 09:41:40 +01:00
Xiao Yu a13aea34e4 Explicitly format long and double values for gauges 2014-08-14 13:52:58 -04:00
Xiao Yu 2f51dd2028 Add new test for large fractional gauge values 2014-08-14 13:51:16 -04:00
Xiao Yu 0d00482a09 Fix JavaDoc from convenience methods 2014-08-14 13:50:31 -04:00
Xiao Yu 0e611d9991 No longer using DecimalFormat 2014-08-12 13:02:15 -04:00
Xiao Yu a0e932f26c Use common method to handle logic of sending gauges 2014-08-12 12:58:59 -04:00
Xiao Yu eba9b57441 More Tests for Gauges
* Test that a gauge of 0 sends a zero and not a zero delta
* Test that double values of high precision are sent properly
2014-08-12 12:55:27 -04:00
Xiao Yu 178c3412d7 Merge remote-tracking branch 'upstream/master' into double-gauge 2014-08-12 10:35:29 -04:00
Tom Denley a0db276e61 update README for latest revision 2014-08-12 10:15:19 +01:00
Tom Denley 370b6d5286 add travis build indicator to README -- fixes #24 2014-08-12 10:14:07 +01:00
Tom Denley ebfd5de5d9 add travis yaml file for issue #24 2014-08-12 10:10:59 +01:00
Tom Denley 87a76b4846 tomd: modify test of gauge values to send a very large number, proving that long values are transmitted faithfully. This will ensure that a fix to issue #19 does not break long gauge values 2014-08-12 09:14:10 +01:00
Xiao Yu 19c6bdef2d Overload gauge methods to send either longs or doubles 2014-08-11 15:04:04 -04:00
Xiao Yu f23a8044fd Add test for sending double values for gauges 2014-08-11 14:59:53 -04:00
Tom Denley 9191d9e6ed tomd: correct documentation following rename of recordSetValue to recordSetEvent -- discovered on issue #22 2014-08-07 10:33:53 +01:00
Tom Denley 589278c082 tomd: sadly, we change the default encoding for testing in this way, as it is unsupported, and has bugs in sun.nio.fs.UnixFileSystem 2014-07-28 15:59:28 +01:00
Tom Denley 3990f8ee91 tomd: bump version number for next release 2014-07-28 15:57:58 +01:00
Tom Denley 0aef3f2cc3 tomd: specify encoding to use when sending data to StatsD. Sadly, StatsD does not specify an encoding and relies on the Node.JS Buffer class defailt of UTF-8, so we have to assume this is what they would choose were an explicit encoding be specified in the future. Fixes #18 2014-07-28 15:47:01 +01:00
Tom Denley 7be50831ad tomd: deliberately set String.format locale to null so that "no localization is applied" -- fixes #17 2014-07-28 14:58:13 +01:00
Tom Denley 2ecaae808a tomd: correct repo urls following github org rename 2014-07-28 14:18:59 +01:00
Tom Denley 7b13ffe71f tomd: prepare for v3.0 release 2014-07-28 11:27:40 +01:00
Tom Denley 6c42252fb8 tomd: support sample rates for counters -- closes #10 2014-07-28 10:50:44 +01:00
Tom Denley 84030ff8fa tomd: support sample rates for counters, for issue #10 2014-07-28 10:41:33 +01:00
Tom Denley 47f83a1ae0 tomd: use a daemon thread so that JVM shutdown is not prevented -- fixes #7 2014-07-25 17:25:58 +01:00
Tom Denley 8eb0cff5bd tomd: update JavaDoc for set support 2014-07-25 17:06:36 +01:00
Tom Denley c05013a055 tomd: create convenience method allowing the user to record the completion of a timing event that finishes now -- fixes #13 2014-07-25 16:25:54 +01:00
Tom Denley 79d2c1fa79 tomd: change to use longs instead of ints -- fixes #11 2014-07-25 15:55:51 +01:00
Tom Denley d073385d86 tomd: add support for gauge deltas -- fixes #6 2014-07-25 15:42:32 +01:00
Tom Denley 7ccd5f3001 tomd: support empty or null prefixes -- fixes #8 2014-07-25 15:07:06 +01:00
Tom Denley 17d1de4952 tomd: extract common test setup 2014-07-25 14:55:26 +01:00
Tom Denley 184e7222ab tomd: whitespace 2014-07-25 12:23:06 +01:00
Tom Denley 60ac1c6018 tomd: extract common code for message construction into a method 2014-07-25 12:22:53 +01:00
Tom Denley 90dd395431 tomd: correct bug with setting gauges to negative values 2014-07-25 12:10:47 +01:00
Tom Denley 2c75a70f48 tomd: extract superclass for convenience methods to make the implementation class cleaner and more focused 2014-07-25 11:56:35 +01:00
Tom Denley ef7688255e tomd: correct incorrect parameter name in interface definition 2014-07-25 11:41:00 +01:00
Tom Denley d27f034383 tomd: better name for set value parameter, and better JavaDoc 2014-07-25 11:39:20 +01:00
Tom Denley 98248e85e8 tomd: make test class final 2014-07-25 11:33:34 +01:00
Tom Denley 7267bb33ec tomd: correct whitespace following merge of pull request 2014-07-25 11:32:51 +01:00
Tom Denley 3ad1fe4b0a Merge pull request #5 from danieltwagner/master
Add support for sets
2014-07-25 11:21:34 +01:00
danieltwagner 4402fae782 Set elements are no longer automatically aggregated but rather sent as individual packets. 2013-08-26 00:20:21 +01:00
danieltwagner 736a7d9a2e added support for sets 2013-01-27 23:01:58 +00:00
scarytom b2e1a1930f corrected several JavaDoc issues 2012-10-16 22:40:54 +01:00
scarytom 3e230b5314 Extract an interface for the StatsDClient, so that a No-Op implementation can be introduced. This helps users who want a way to turn off metrics without implementing their own proxy. Bumping major release version as this is technically an API breaking change. Updating README accordingly. 2012-10-16 22:33:11 +01:00