Module: Tire::Rails::Instrumentation

Extended by:
ActiveSupport::Concern
Defined in:
lib/tire/rails/logger/instrumentation.rb

Instance Method Summary collapse

Instance Method Details

#perform_with_instrumentationObject



10
11
12
13
14
15
16
# File 'lib/tire/rails/logger/instrumentation.rb', line 10

def perform_with_instrumentation
  # Wrapper around the Search.perform method that logs search times.
  #
  ActiveSupport::Notifications.instrument("search.tire", :name => 'Search', :search => self.to_json) do
    perform_without_instrumentation
  end
end