Module: Searchkick::QueryWithInstrumentation

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

Instance Method Summary collapse

Instance Method Details

#execute_searchObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/searchkick/logging.rb', line 6

def execute_search
  name = searchkick_klass ? "#{searchkick_klass.name} Search" : "Search"
  event = {
    name: name,
    query: params
  }
  ActiveSupport::Notifications.instrument("search.searchkick", event) do
    super
  end
end