2.24.1
·
12 commits
to master
since this release
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_errorsflag (defaultfalse). Whentrue,Mongo::Error::OperationFailureandMongo::Error::BulkWriteErrormessages are suffixed with(on host:port)so users can identify which server produced the error. - Both
#messageand#to_srender the suffix, since it's baked into the string passed tosuperat construction.ResultCombineraccumulates 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.ymlfrom the command-logging-and-monitoring spec socommandSucceededEventandcommandFailedEventexpectations includedatabaseName. Schema bumped from 1.1 to 1.15. - The Ruby driver's event classes already exposed
database_nameonCommandStarted,CommandSucceeded, andCommandFailed, and the unified runner already supports assertingdatabaseNameon any command event — this change exercises that path through the unified spec tests.