module Searchkick::SearchkickWithInstrumentation
Public Instance Methods
multi_search(searches)
click to toggle source
Calls superclass method
# File lib/searchkick/logging.rb, line 62 def multi_search(searches) event = { name: "Multi Search", body: searches.flat_map { |q| [q.params.except(:body).to_json, q.body.to_json] }.map { |v| "#{v}\n" }.join } ActiveSupport::Notifications.instrument("multi_search.searchkick", event) do super end end
perform_items(items)
click to toggle source
Calls superclass method
# File lib/searchkick/logging.rb, line 72 def perform_items(items) if callbacks_value == :bulk event = { name: "Bulk", count: items.size } ActiveSupport::Notifications.instrument("request.searchkick", event) do super end else super end end