Releases: yabeda-rb/yabeda
Releases · yabeda-rb/yabeda
0.13.1: Fix Ruby 2.x compatibility
Fixed
- Compatibility with Ruby 2.x, broken in 0.13.0 due to differences of keywords handling in Ruby 2.x for case when method has arguments with default values. [@Envek]
0.13.0: Limit metrics to specific adapters, optional tags for counters
Added
-
Ability to limit some metrics to specific adapters. #37 by [@Keallar] and [@Envek]
Yabeda.configure do group :cloud do adapter :newrelic, :datadog counter :foo end counter :bar, adapter: :prometheus end
-
Multiple expectations in RSpec matchers. [@Envek]
expect { whatever }.to increment_yabeda_counter(:my_counter).with( { tag: "foo" } => 1, { tag: "bar" } => (be >= 42), )
Changed
-
Don't require to provide tags for counters and histograms, use empty tags (
{}
) by default. See discussion at #26. [@Envek]Yabeda.foo.increment # same as Yabeda.foo.increment({}, by: 1)
Fixed
0.12.0: Summary metric type
Added
- Summary metric type (mostly for Prometheus adapter).
0.11.0: Test adapter and RSpec matchers
0.10.1: Fix compatibility with anyway_config 1.x on Ruby older than 2.5
Fixed
- Compatibility with anyway_config 1.x gem (which is automatically used on older Rubies, older then minimal Ruby 2.5 for anyway_config 2.x)
0.10.0: Debug mode and histograms measuring block runtime
Added
- Ability to pass a block to
Yabeda::Histogram#measure
to automatically measure its runtime in seconds using monotonic time. - Debug mode that will enable some additional metrics to help debug performance issues with your usage of Yabeda (or Yabeda itself). Use environment variable
YABEDA_DEBUG
to enable it or callYabeda.debug!
. - Debugging histogram
yabeda_collect_duration
that measures duration of every collect block, as they are used for collecting metrics of application state and usually makes some potentially slow queries to databases, network requests, etc.
Changed
- Adapters now should use method
Yabeda.collect!
instead of manual calling of every collector block.
0.9.0: Ability to add default tags only for a specific group
0.8.0: Automatic configuration on Rails (moved from yabeda-rails)
Added
- Added railtie to automatically configure Yabeda on Rails: moved from yabeda-rails gem. @Envek
0.7.0: increment and decrement convenience methods for gauges
Added
#increment
and#decrement
convenience methods forYabeda::Gauge
. #13 by @dsalahutdinov- Ability to use custom step in
#increment
and#decrement
for gauges. @Envek
Fixed
- Account for default tags in
Yabeda::Metric#get
. @Envek
0.6.2: Fix compatibility with yabeda-puma-plugin
Fixed
- Compatibility with plugins (like yabeda-puma-plugin) that for some reason configures itself after Yabeda configuration was already applied by
Yabeda.configure!
(was broken in 0.6.0). @Envek