Skip to content

Releases: DataDog/dogstatsd-ruby

v5.1.0 / 2021.06.17

17 Jun 15:01
v5.1.0
0eef980
Compare
Choose a tag to compare
  • [FEATURE] Flush last metrics on Statsd#close #180 by @kbogtob
  • [ENHANCEMENT] Do not try to flush where there is no available message_queue [#189][] by @remeh
  • [OTHER] Add pry to development dependencies and enable gem in Gemfile #192 by @ivoanjo
  • [OTHER] Expand Ruby Support to Rubies 2.6, 2.7, and 3.0 [#191][] by @laserlemon

Known issues

If the DogStatsD client is instantiated before a fork, the forked process won't copy the companion thread that the original client needs to flush and the client won't work properly. This issue will be addressed in an upcoming version. If you are concerned by this issue, please read this section of the README.

v5.0.1 / 2021.04.09

09 Apr 07:40
v5.0.1
50dd3e7
Compare
Choose a tag to compare
  • [OTHER] Re-introduce a Statsd#batch method to help with compatibility with v4.x versions. #176 by @remeh
    • It is deprecated and will be removed in v6.x
    • It does not have the exact same behavior as the batch method from v4.x versions since the flush could now automatically occur while the batch block is executed if the buffer has been filled.
  • [BUGFIX] Safely close concurrent resources on Sender #175 by @marcotc

v5.0.0 / 2021.04.07

07 Apr 08:08
v5.0.0
29d16ff
Compare
Choose a tag to compare

API breaking changes

  1. This new major version uses automatic buffering with preemptive flushing, there is no need to manually batch the metrics together anymore. The preemptive flushing part means that just before the buffer gets full, a flush is triggered. Manual flush is still possible with the Statsd#flush method. The Statsd#batch method has been removed from the API. What would have been written this way with the v4 API:
require 'datadog/statsd'

statsd = Datadog::Statsd.new('127.0.0.1', 8125)

statsd.batch do |s|
  s.increment('example_metric.increment', tags: ['environment:dev'])
  s.gauge('example_metric.gauge', 123, tags: ['environment:dev'])
end

should be written this way with the v5 API:

require 'datadog/statsd'

statsd = Datadog::Statsd.new('127.0.0.1', 8125)

statsd.increment('example_metric.increment', tags: ['environment:dev'])
statsd.gauge('example_metric.gauge', 123, tags: ['environment:dev'])

# synchronous flush
statsd.flush(sync: true)
  1. Statsd#initialize parameter max_buffer_bytes has been renamed to buffer_max_payload_size for consistency with the new automatic batch strategy. Please note the addition of buffer_max_pool_size to limit the maximum amount of messages to buffer.

Commits

  • [IMPROVEMENT] Use asynchronous IO to avoid doing IO in the hot paths of the library users #151 by [@kbogtob
  • [IMPROVEMENT] Automatic buffering/preemptive flushing for better performances #146 by @kbogtob

v4.8.3

22 Feb 13:36
v4.8.3
94c62c6
Compare
Choose a tag to compare
  • [FEATURE] Add truncate_if_too_long option to the event call to truncate the event if it is too long instead of raising an error #161 by @kazu9su

v4.8.2

16 Nov 16:54
e665cfb
Compare
Choose a tag to compare
  • [IMPROVEMENT] The overhead of submitting metrics through dogstatsd-ruby has been reduced #155 #156 by @marcotc

v4.8.1

25 May 14:43
c2f46d0
Compare
Choose a tag to compare
  • [BUGFIX] Send global tags even if no tags provided when using service check / event call #147 by @f3ndot

v4.8.0

21 Apr 08:21
ebe9313
Compare
Choose a tag to compare
  • [Feature] Add support of more environment variables for tagging #140 by @delner
  • [OTHER] Small optimizations #139 by @tenderlove
  • [BUGFIX] Properly close UDPSocket before creating a new one #143 by @zachmccormick
  • [OTHER] Refactor to make code more idiomatic #138 by @kbogtob
  • [OTHER] Refactor to translate unit tests to rspec #135 by @kbogtob
  • [OTHER] Bump rake requirement to >= 12.3.3 #137 by @remeh

v4.7.0

14 Feb 16:47
5c48caf
Compare
Choose a tag to compare

4.7.0 / 2020.02.14

  • [FEATURE] Add configurable flush interval for the telemetry #132 by @hush-hush
  • [OTHER] Code structure and tests improvements #131 by @kbogtob

v4.6.0

20 Jan 10:09
2ca5c4d
Compare
Choose a tag to compare

4.6.0 / 2020-01-20

  • [FEATURE] Adding telemetry to the dogstatsd client #128

v.4.5.0

22 Aug 10:19
b79c25b
Compare
Choose a tag to compare

4.5.0 / 2019.08.22