This file documents the changes between releases of this library. When creating a pull request, please at an entry to the "unreleased changes" section below.
- Only rely on the default backend for an environment if one was not already declared.
- Create dummy
batch
,timer
,timing
, andtime
functions.
- The
assert_statsd_calls
test helper will now raise an exception whenever a block isn't passed. - Sending stats inside an exit handler will no longer cause programs to exit abruptly.
- Use
prepend
instead of rewriting classes for metaprogramming methods. - RSpec: make matchers more flexible.
- Bugfix: Only ask Rails for the environment when it's actually loaded.
- Add
assert_statsd_calls
to from validating cases where one has multiple metrics with the same name and type being recorded, but with different options.
- Fix rspec-rails compatibility
- Add
value
keyword argument to all metric types.
- Make StatsD client thread-safe
- Assertions: Ensure sample rates have proper values.
- Assertions: Make tag assertions work more intuitively
- RSpec: Add backwards compatibility for RSpec 2
- Don't change method visibility when adding instrumentation to methods using metaprogramming
- RSpec: add support for Compound expectations
- Assertions: allow ignoring certain tags when asserting for other tags to be present.
- Better error message for
assert_no_statsd_calls
- More tag handling performance improvements.
- RSpec matchers documentation improvements
- Tag handling performance improvements.
- Test against Ruby 2.2.
- Drop support for Ruby 1.9.3.
- Fix some loading order issues in Rails environments.
- Default behavior: in a staging environment, the defaults are now the same as in a production environment.
- Documentation overhaul
- Allow for nested assertions using the
assert_statsd_*
assertion methods.
- Add a Railtie to fix some initialization issues.
- Assertion method bugfixes
- Documentation fixes
- Add assertion methods
assert_statsd_histogram
,assert_statsd_set
, andassert_statsd_key_value
.
- Complete rewrite using pluggable backends.
- Add assertion methods in
StatsD::Instrument::Assertions
to make testing easier and less brittle. - Drop support for Ruby 1.8