Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: ostruct gem warning with Ruby 3.4 #4264

Closed
ybiquitous opened this issue Jan 8, 2025 · 1 comment · Fixed by #4274
Closed

[BUG]: ostruct gem warning with Ruby 3.4 #4264

ybiquitous opened this issue Jan 8, 2025 · 1 comment · Fixed by #4274
Assignees
Labels
bug Involves a bug community Was opened by a community member

Comments

@ybiquitous
Copy link

Tracer Version(s)

2.8.0

Ruby Version(s)

ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23]

Relevent Library and Version(s)

No response

Bug Report

In Ruby 3.4, the following warning around the ostruct gem is emitted. We can see it on this CI log:

/home/runner/work/dd-trace-rb/dd-trace-rb/tasks/github.rake:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.
/opt/hostedtoolcache/Ruby/3.4.1/x64/bin/ruby -I/home/runner/work/dd-trace-rb/dd-trace-rb/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/lib:/home/runner/work/dd-trace-rb/dd-trace-rb/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/lib /home/runner/work/dd-trace-rb/dd-trace-rb/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/exe/rspec spec/datadog/core/runtime/metrics_spec.rb
/home/runner/work/dd-trace-rb/dd-trace-rb/lib/datadog/di/transport.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.

https://github.com/DataDog/dd-trace-rb/actions/runs/12654738134/job/35263335640#step:5:10

Reproduction Code

No response

Configuration Block

No response

Error Logs

No response

Operating System

No response

How does Datadog help you?

No response

@ybiquitous ybiquitous added bug Involves a bug community Was opened by a community member labels Jan 8, 2025
@ivoanjo
Copy link
Member

ivoanjo commented Jan 8, 2025

Hey @ybiquitous, thanks for the report! We spotted it recently as well; we had two other warnings that we're already WIP fixing (#4259, #4257) and this one is the last one.

We should have all fixes out within a release or two.

@ivoanjo ivoanjo linked a pull request Jan 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug community Was opened by a community member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants