You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to Rails 8.1, I started seeing: Could not log "sql.active_record" event. NoMethodError: undefined method 'sql_runtime' for module ActiveRecord::RuntimeRegistry. I traced this back to this change in Rails: rails/rails@7d12071.
ActiveRecord::RuntimeRegistry seems to be considered an internal class, as its marked with :nodoc: comments. All of the methods moved. For example ActiveRecord::RuntimeRegistry.sql_runtime moved to ActiveRecord::RuntimeRegistry.stats.sql_runtime.
grncdr, karlentwistle, Vasfed, vladalive and jupapios