method
instrument
v6.1.7.7 -
Show latest stable
- Class:
ActiveSupport::Notifications::Instrumenter
instrument(name, payload = {})public
Given a block, instrument it by measuring the time taken to execute and publish it. Without a block, simply send a message via the notifier. Notice that events get sent even if an error occurs in the passed-in block.