From 9ce7e3932293259e6c82cbf008722b57e4e7b41c Mon Sep 17 00:00:00 2001 From: Ryan Harkins Date: Mon, 19 Aug 2024 12:54:10 +0100 Subject: [PATCH] fix: use ActiveSupport from top-level namespace (#1123) --- .../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