---
title: "dogstatsd-ruby 5.0.0 Breaking Changes on RubyGems"
description: "What each dogstatsd-ruby release removed, renamed or changed: 19 breaking changes in 4 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/dogstatsd-ruby
last_updated: 2026-12-04
---

# 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

Latest version `5.7.1`. [Source repository](https://github.com/DataDog/dogstatsd-ruby)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 3 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [5.0.0](#v-5-0-0): 17 breaking changes in 3 versions.

## dogstatsd-ruby 5.0.0 breaking changes

dogstatsd-ruby 5.0.0, released April 7, 2021: 3 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](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v5.0.0)
- **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](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v5.0.0)
- **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](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v5.0.0)

## dogstatsd-ruby 4.0.0 breaking changes

dogstatsd-ruby 4.0.0, released August 20, 2018: 13 breaking changes.

- **Removed** `format_event`  

format_event is now private and can no longer be called from user code. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Removed** `format_service_check`  

format_service_check is now private and can no longer be called from user code. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Removed** `host`  

The host setter on the instance was removed for thread-safety. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Removed** `max_buffer_size=`  

The max_buffer_size= setter was removed. Use max_buffer_bytes instead. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Removed** `namespace`  

The namespace setter on the instance was removed for thread-safety. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Removed** `port`  

The port setter on the instance was removed for thread-safety. Pass the port through the connection instead. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Removed** `tags`  

The tags setter on the instance was removed for thread-safety. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Removed** `version`  

The deprecated version method was removed in this release. Stop calling it. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Renamed** `host`  

The host reader is now on statsd.connection instead of the client. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)
- **Renamed** `max_buffer_size`  

The max_buffer_size initializer argument was replaced by max_buffer_bytes, which is measured in bytes. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v4.0.0)

And 3 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## dogstatsd-ruby 3.0.0 breaking changes

dogstatsd-ruby 3.0.0, released May 18, 2017: 1 breaking change.

- **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](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v3.0.0)

## dogstatsd-ruby 2.0.0 breaking changes

dogstatsd-ruby 2.0.0, released September 22, 2016: 2 breaking changes.

- **Renamed** `Statsd`  

Require 'datadog/statsd' instead of 'statsd' and use Datadog::Statsd instead of Statsd in code. [github.com](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v2.0.0)
- **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](https://github.com/DataDog/dogstatsd-ruby/releases/tag/v2.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
