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

# prometheus-client breaking changes

prometheus-client 5.0.0 (August 29, 2026) is its newest release with breaking changes, 2 of them. The first: Drops support for Ruby versions below 3.3 in prometheus-client 5.0.0. Every breaking API change we have recorded in prometheus-client on RubyGems: 13 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.0.0`, released August 29, 2026. [Source repository](https://github.com/prometheus/client%5Fruby)

Its 3.0.0 release requires Ruby 2.6 or later. [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): 2 breaking changes in 1 version.
- From [0.7.0](#v-0-7-0) to [5.0.0](#v-5-0-0): 10 breaking changes in 4 versions.

## prometheus-client 5.0.0 breaking changes

prometheus-client 5.0.0, released August 29, 2026: 2 breaking changes.

- **Removed**  

Ruby versions below 3.3 are no longer supported or tested. Code running on them may stop working, so upgrade to Ruby 3.3 or later. [github.com](https://github.com/prometheus/client%5Fruby/blob/v.5.0.0/CHANGELOG.md)
- **Removed**  

JRuby versions below 9.4 are no longer supported or tested. Code running on them may stop working, so upgrade JRuby to 9.4 or later. [github.com](https://github.com/prometheus/client%5Fruby/blob/v.5.0.0/CHANGELOG.md)

## prometheus-client 4.0.0 breaking changes

prometheus-client 4.0.0, released March 27, 2022: 1 breaking change.

- **Behavior changed** `Prometheus.Middleware.Collector`  

The collector middleware no longer uses Sinatra or Grape route information to build the path label, so path labels may change in existing metrics. To keep the 3.0.0 behaviour or use custom path labels, follow the collector middleware... [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v4.0.0)

## prometheus-client 3.0.0 breaking changes

prometheus-client 3.0.0, released February 5, 2022: 6 breaking changes.

- **Removed**  

Ruby versions below 2.6 are no longer tested or supported; upgrade Ruby to 2.6 or later. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v3.0.0)
- **Behavior changed**  

Unlabeled metrics are exported immediately with 0, which may significantly increase the number of exported time series. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v3.0.0)
- **Behavior changed**  

Metrics declared with label names outside the Prometheus character set now raise an error at initialization. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v3.0.0)
- **Behavior changed** `Prometheus.Client.Collector`  

The request path used for labels now includes SCRIPT_NAME, so label values in existing metrics may change for apps mounted under a prefix or engine. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v3.0.0)
- **Behavior changed** `Prometheus.Client.Push`  

Creating a Push client without a non-empty job now raises ArgumentError. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v3.0.0)
- **Signature changed** `Prometheus.Client.Push`  

The job parameter is mandatory and must be non-empty, and the initializer takes keyword arguments; update calls to pass keyword arguments. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v3.0.0)

## prometheus-client 2.0.0 breaking changes

prometheus-client 2.0.0, released January 28, 2020: 1 breaking change.

- **Behavior changed**  

A value observed exactly at the upper limit of a histogram bucket is now counted in that bucket rather than the next one. Most code needs no change, but tests that check bucket counts may need updating. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v2.0.0)

## prometheus-client 0.7.0 breaking changes

prometheus-client 0.7.0, released May 5, 2017: 3 breaking changes.

- **Renamed** `Prometheus.Middleware.*`  

The Rack middlewares were renamed into the Prometheus::Middleware namespace. Update any code that references the old middleware class names. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v0.7.0)
- **Behavior changed** `Prometheus.Middleware.Collector`  

The Collector middleware uses a histogram instead of a summary, so existing dashboards and queries on the old summary metrics may need updating. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v0.7.0)
- **Default changed** `Prometheus.Middleware.Collector`  

The Collector now emits fewer labels by default, so queries relying on the previous high-cardinality labels may need updating. [github.com](https://github.com/prometheus/client%5Fruby/releases/tag/v0.7.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.
