Skip to content

Releases: yabeda-rb/yabeda

0.13.1: Fix Ruby 2.x compatibility

11 Oct 12:01
v0.13.1
1a63a53
Compare
Choose a tag to compare

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

02 Oct 10:28
v0.13.0
b9bb7c4
Compare
Choose a tag to compare

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

  • Railtie loading to prevent calling methods that have not yet been defined. #38 by [@bibendi].

0.12.0: Summary metric type

28 Jul 02:41
v0.12.0
4f0f687
Compare
Choose a tag to compare

Added

  • Summary metric type (mostly for Prometheus adapter).

0.11.0: Test adapter and RSpec matchers

25 Sep 11:58
v0.11.0
5d492d3
Compare
Choose a tag to compare

Added

  • RSpec matchers increment_yabeda_counter, update_yabeda_gauge, and measure_yabeda_histogram for convenient testing. #25 by [@Envek][]
  • Automatic setup of RSpec on require "yabeda/rspec"
  • Special test adapter that collects metric changes in memory

0.10.1: Fix compatibility with anyway_config 1.x on Ruby older than 2.5

30 Aug 07:56
v0.10.1
830363f
Compare
Choose a tag to compare

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

21 Jul 12:53
v0.10.0
d88c669
Compare
Choose a tag to compare

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 call Yabeda.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

07 May 13:30
v0.9.0
d15c7c5
Compare
Choose a tag to compare

Added

  • Ability to set global metric tags only for a specific group #19 by [@liaden]

0.8.0: Automatic configuration on Rails (moved from yabeda-rails)

21 Aug 15:32
v0.8.0
7b578d8
Compare
Choose a tag to compare

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

07 Aug 10:46
v0.7.0
f21191d
Compare
Choose a tag to compare

Added

  • #increment and #decrement convenience methods for Yabeda::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

04 Aug 16:22
v0.6.2
dcfb480
Compare
Choose a tag to compare

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