Add support for Ruby HEAD (version 4.0)#5043
Conversation
Ruby changed the development branch from 3.5 to 4.0 in ruby/ruby@6d81969 Updating the version here allows folks to continue testing the gem against Ruby HEAD (4.0.0.dev)
p-datadog
left a comment
There was a problem hiding this comment.
We don't currently have Ruby 4.0 in CI and given a lack of a released preview version, testing against 4.0 would mean testing against HEAD which is rapidly changing. What do you think about a note I added to clarify that we do not officially test against 4.0 yet?
Hello, v4.0.0-preview2 is already released, and a new image tag will be pushed soon. |
ivoanjo
left a comment
There was a problem hiding this comment.
👍 LGTM thanks for sending this our way!
|
I'll make sure this lands in master asap :) |
|
@ivoanjo any timeline to release it to rubygems? Depending on that I will either silence the DD integrations of mine
|
|
@mensfeld unfortunately the next release has been held back for other very unrelated reasons and should only happen after the first week of December. Sorry! |
|
@ivoanjo no worries at all! The only thing (if I may) ask is to ping me here when it's done so I can disable my exclusions and re-run all including DD setup in Karafka against 4.0 🙏 take your time |
|
Deal, I'll make a note and for sure will ping you! |
|
@mensfeld as promised (thanks for the patience!) there's now a freshly-baked version 2.23.0 of the |
The datadog gem now supports Ruby 4.0 since v2.24.0 (Jan 2026). These specs were excluded in #2922 as a precaution when dd-trace-rb hadn't yet released Ruby 4.0 support. That support has since shipped (DataDog/dd-trace-rb#5043), so the exclusion is no longer needed.
The datadog gem now supports Ruby 4.0 since v2.24.0 (Jan 2026). These specs were excluded in #2922 as a precaution when dd-trace-rb hadn't yet released Ruby 4.0 support. That support has since shipped (DataDog/dd-trace-rb#5043), so the exclusion is no longer needed.

What does this PR do?
Changes the max Ruby version to 4.0
Motivation:
Ruby changed the development branch from 3.5 to 4.0 in ruby/ruby@6d81969 Updating the version here allows folks to continue testing the gem against Ruby HEAD (4.0.0.dev)
Change log entry