Method: NewRelic::Agent::Instrumentation::ActiveRecordSubscriber#initialize

Defined in:
lib/new_relic/agent/instrumentation/active_record_subscriber.rb

#initializeActiveRecordSubscriber

Returns a new instance of ActiveRecordSubscriber.

[View source]

17
18
19
20
21
22
23
# File 'lib/new_relic/agent/instrumentation/active_record_subscriber.rb', line 17

def initialize
  define_cachedp_method
  # We cache this in an instance variable to avoid re-calling method
  # on each query.
  @explainer = method(:get_explain_plan)
  super
end