Module: NewRelic::Agent::Instrumentation::ActiveRecordPrepend::BaseExtensions
- Defined in:
- lib/new_relic/agent/instrumentation/active_record_prepend.rb
Instance Method Summary collapse
Instance Method Details
#save(*args, **kwargs, &blk) ⇒ Object
15 16 17 18 19 |
# File 'lib/new_relic/agent/instrumentation/active_record_prepend.rb', line 15 def save(*args, &blk) ::NewRelic::Agent.with_database_metric_name(self.class.name, nil, ACTIVE_RECORD) do super end end |
#save!(*args, **kwargs, &blk) ⇒ Object
21 22 23 24 25 |
# File 'lib/new_relic/agent/instrumentation/active_record_prepend.rb', line 21 def save!(*args, &blk) ::NewRelic::Agent.with_database_metric_name(self.class.name, nil, ACTIVE_RECORD) do super end end |