dogstatsd-ruby breaking changes
dogstatsd-ruby 5.0.0 (April 7, 2021) is its newest release with breaking changes, 3 of them. The first: Removed Statsd.batch. Every breaking API change we have recorded in dogstatsd-ruby on RubyGems: 19 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.7.1. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 4.0.0 to 5.0.0: 3 breaking changes in 1 version.
- From 2.0.0 to 5.0.0: 17 breaking changes in 3 versions.
dogstatsd-ruby 5.0.0 breaking changes
- Removed
Statsd.batch
Code that wraps metric calls in statsd.batch must call the metric methods directly. Call statsd.flush(sync: true) to flush synchronously. github.com - Renamed
Statsd.initialize
Rename the max_buffer_bytes parameter passed to Statsd.new to buffer_max_payload_size. A new buffer_max_pool_size option limits buffered messages. github.com - Behavior changed
Metrics are now buffered automatically and flushed just before the buffer fills, so they are no longer sent immediately. Call statsd.flush to flush manually. github.com
dogstatsd-ruby 4.0.0 breaking changes
- Removed
format_event
format_event is now private and can no longer be called from user code. github.com - Removed
format_service_check
format_service_check is now private and can no longer be called from user code. github.com - Removed
host
The host setter on the instance was removed for thread-safety. github.com - Removed
max_buffer_size=
The max_buffer_size= setter was removed. Use max_buffer_bytes instead. github.com - Removed
namespace
The namespace setter on the instance was removed for thread-safety. github.com - Removed
port
The port setter on the instance was removed for thread-safety. Pass the port through the connection instead. github.com - Removed
tags
The tags setter on the instance was removed for thread-safety. github.com - Removed
version
The deprecated version method was removed in this release. Stop calling it. github.com - Renamed
host
The host reader is now on statsd.connection instead of the client. github.com - Renamed
max_buffer_size
The max_buffer_size initializer argument was replaced by max_buffer_bytes, which is measured in bytes. github.com
And 3 more in this version. Sign up to see every change
dogstatsd-ruby 3.0.0 breaking changes
- Behavior changed
Datadog.Statsd.new
Host resolution now happens once when Datadog::Statsd is initialized instead of on every send. Code that creates a client with an unresolvable host must now handle SocketError at construction time. github.com
dogstatsd-ruby 2.0.0 breaking changes
- Renamed
Statsd
Require 'datadog/statsd' instead of 'statsd' and use Datadog::Statsd instead of Statsd in code. github.com - Behavior changed
Datadog.Statsd
Commas are now removed from tags, and Datadog::Statsd requires an array of tags and strips commas and pipes from them. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.