RUBY-3714 Client metadata capture for TruffleRuby by kyleburgess2025 · Pull Request #2971 · mongodb/mongo-ruby-driver
Before this change, mongoid logs included only whether the engine was JRuby or not - other engines, such as truffleruby, were not specified (see https://jira.mongodb.org/browse/RUBY-3714). After this change, the Ruby engine is included in the logs. No testing has been added as of yet for this change.
Below are the Ruby engines tested with the change, along with their values in the platform field of log metadata.
truffleruby+graalvm-25.0.0: "truffleruby 25.0.0, like Ruby 3.3.7, arm64-darwin20, arm64-unknown-darwin, A"
3.2.6: "Ruby 3.2.6, arm64-darwin25, aarch64-apple-darwin25.1.0, M"
jruby-10.0.2.0: "jruby 10.0.2.0, like Ruby 3.4.2, java, JVM 25.0.1, java21, A"