module NewRelic::Agent::Instrumentation::ActiveRecordPrepend::RelationExtensions

Public Instance Methods

calculate(*args, &blk) click to toggle source
Calls superclass method
# File lib/new_relic/agent/instrumentation/active_record_prepend.rb, line 83
def calculate(*args, &blk)
  ::NewRelic::Agent.with_database_metric_name(self.name, nil, ACTIVE_RECORD) do
    super
  end
end
delete_all(*args, &blk) click to toggle source
Calls superclass method
# File lib/new_relic/agent/instrumentation/active_record_prepend.rb, line 71
def delete_all(*args, &blk)
  ::NewRelic::Agent.with_database_metric_name(self.name, nil, ACTIVE_RECORD) do
    super
  end
end
destroy_all(*args, &blk) click to toggle source
Calls superclass method
# File lib/new_relic/agent/instrumentation/active_record_prepend.rb, line 77
def destroy_all(*args, &blk)
  ::NewRelic::Agent.with_database_metric_name(self.name, nil, ACTIVE_RECORD) do
    super
  end
end
pluck(*args, &blk) click to toggle source
Calls superclass method
# File lib/new_relic/agent/instrumentation/active_record_prepend.rb, line 89
def pluck(*args, &blk)
  ::NewRelic::Agent.with_database_metric_name(self.name, nil, ACTIVE_RECORD) do
    super
  end
end
update_all(*args, &blk) click to toggle source
Calls superclass method
# File lib/new_relic/agent/instrumentation/active_record_prepend.rb, line 65
def update_all(*args, &blk)
  ::NewRelic::Agent.with_database_metric_name(self.name, nil, ACTIVE_RECORD) do
    super
  end
end