Module: Searchkick::IndexerWithInstrumentation

Included in:
Indexer
Defined in:
lib/searchkick/logging.rb

Instance Method Summary collapse

Instance Method Details

#performObject



116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/searchkick/logging.rb', line 116

def perform
  if Searchkick.callbacks_value == :bulk
    event = {
      name: "Bulk",
      count: queued_items.size
    }
    ActiveSupport::Notifications.instrument("request.searchkick", event) do
      super
    end
  else
    super
  end
end