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

Ruby 3.2 updates #1436

Merged

Conversation

fallwith
Copy link
Contributor

  • Start using Ruby 3.2.0-preview2 for CI
  • Support Ruby 3.2's two separate VM stats, :constant_cache_invalidations and :constant_cache_misses.

Prior to Ruby 3.2, Ruby offered a :global_constant_state VM stat that the New Relic Ruby agent used to report on constant cache invalidations.

Ruby 3.2 offers improved statistics for constants and has replaced :global_constant_state with 2 new attributes,
:constant_cache_invalidations and :constant_cache_misses. The New Relic Ruby agent will use :constant_cache_invalidations for its existing reporting of invalidations and will also start to report on constant cache misses when Ruby 3.2+ is present.

Resolves #1059

NOTE: the CI cron tests against 3.2.0-preview2 were confirmed with #1407

* Start using Ruby 3.2.0-preview2 for CI
* Support Ruby 3.2's two separate VM stats,
  `:constant_cache_invalidations` and `:constant_cache_misses`.

Prior to Ruby 3.2, Ruby offered a `:global_constant_state` VM stat that
the New Relic Ruby agent used to report on constant cache invalidations.

Ruby 3.2 offers improved statistics for constants and has replaced
`:global_constant_state` with 2 new attributes,
`:constant_cache_invalidations` and `:constant_cache_misses`. The New
Relic Ruby agent will use `:constant_cache_invalidations` for its
existing reporting of invalidations and will also start to report on
constant cache misses when Ruby 3.2+ is present.

Resolves #1059
Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

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

I appreciate your proactivity, @fallwith! Thanks for keeping us prepared for the next Ruby version release.

@fallwith fallwith merged commit e01f727 into dev Sep 16, 2022
@fallwith fallwith deleted the they_didnt_seem_to_mention_this_bit_in_the_release_announcement branch September 16, 2022 08:49
@fallwith fallwith mentioned this pull request Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ruby 3.2 support - Report on the new VM's :constant_cache stat instead of the old :global_constant_state
2 participants