diff --git a/lib/chewy/index/import.rb b/lib/chewy/index/import.rb index b51e95dcf..839501d34 100644 --- a/lib/chewy/index/import.rb +++ b/lib/chewy/index/import.rb @@ -156,7 +156,7 @@ def empty_objects_or_scope?(objects_or_scope) end def import_linear(objects, routine) - ActiveSupport::Notifications.instrument 'import_objects.chewy', type: self do |payload| + ActiveSupport::Notifications.instrument 'import_objects.chewy', index: self do |payload| progress_bar = ThreadSafeProgressBar.new(routine.options[:progressbar]) { adapter.import_count(objects) } adapter.import(*objects, routine.options) do |action_objects| routine.process(**action_objects)