Skip to content

Release candidate for 2.24.1#3043

Open
comandeo-mongo wants to merge 1 commit intomongodb:masterfrom
comandeo-mongo:rc-2.24.1
Open

Release candidate for 2.24.1#3043
comandeo-mongo wants to merge 1 commit intomongodb:masterfrom
comandeo-mongo:rc-2.24.1

Conversation

@comandeo-mongo
Copy link
Copy Markdown
Contributor

@comandeo-mongo comandeo-mongo commented May 7, 2026

The MongoDB Ruby team is pleased to announce version 2.24.1 of the mongo gem - a pure-Ruby driver for connecting to, querying, and manipulating MongoDB databases. This is a new patch release in the 2.24.x series of MongoDB Ruby Driver.

Install this release using RubyGems via the command line as follows:

gem install -v 2.24.1 mongo

Or simply add it to your Gemfile:

gem 'mongo', '2.24.1'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

Bug Fixes

  • RUBY-3831 Skip OpenTelemetry command spans for sensitive commands (PR)
  • RUBY-3456 Suppress no-op SDAM debug log lines (PR)

New Features

RUBY-3602 Include server address in OperationFailure and BulkWriteError messages (PR)

  • New Mongo::Config.include_server_address_in_errors flag (default false). When true, Mongo::Error::OperationFailure and Mongo::Error::BulkWriteError messages are suffixed with (on host:port) so users can identify which server produced the error.
  • Both #message and #to_s render the suffix, since it's baked into the string passed to super at construction. ResultCombiner accumulates unique addresses across split bulk batches so multi-server bulks produce (on h1:27017, h2:27017).
  • Default-off behavior is byte-identical to current. No breaking changes. Planned to stay opt-in (no default flip).

RUBY-3220 Add databaseName property to command events (PR)

  • Sync find.yml from the command-logging-and-monitoring spec so commandSucceededEvent and commandFailedEvent expectations include databaseName. Schema bumped from 1.1 to 1.15.
  • The Ruby driver's event classes already exposed database_name on CommandStarted, CommandSucceeded, and CommandFailed, and the unified runner already supports asserting databaseName on any command event — this change exercises that path through the unified spec tests.
  • RUBY-3712 Expose atClusterTime in snapshot sessions (PR)

Copilot AI review requested due to automatic review settings May 7, 2026 12:20
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner May 7, 2026 12:20
@comandeo-mongo comandeo-mongo requested a review from jamis May 7, 2026 12:20
@comandeo-mongo comandeo-mongo added the release-candidate Identifies PR's that represent potential new releases. label May 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bumps the MongoDB Ruby Driver patch version to 2.24.1 to cut the 2.24.1 release candidate, aligning the repository’s version metadata and the gem’s runtime version constant.

Changes:

  • Update product.yml version metadata to 2.24.1.
  • Update Mongo::VERSION to 2.24.1.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
product.yml Updates the packaged release version metadata to 2.24.1.
lib/mongo/version.rb Updates the gem’s runtime version constant to 2.24.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-candidate Identifies PR's that represent potential new releases.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants