From e96658058569725f456f3c3391a2be9048ae1a0d Mon Sep 17 00:00:00 2001 From: Ryan Harkins Date: Sun, 18 Aug 2024 21:51:47 +0100 Subject: [PATCH] fix: use ActiveSupport from top-level namespace --- .../instrumentation/active_record/instrumentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/active_record/lib/opentelemetry/instrumentation/active_record/instrumentation.rb b/instrumentation/active_record/lib/opentelemetry/instrumentation/active_record/instrumentation.rb index 1de788ab0..6d76b91f4 100644 --- a/instrumentation/active_record/lib/opentelemetry/instrumentation/active_record/instrumentation.rb +++ b/instrumentation/active_record/lib/opentelemetry/instrumentation/active_record/instrumentation.rb @@ -42,7 +42,7 @@ def require_dependencies end def patch_activerecord - ActiveSupport.on_load(:active_record) do + ::ActiveSupport.on_load(:active_record) do # Modules to prepend to ActiveRecord::Base are grouped by the source # module that they are defined in as they are included into ActiveRecord::Base # Example: Patches::PersistenceClassMethods refers to https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/persistence.rb#L10