Module: ROM::Plugins::Relation::Instrumentation
- Extended by:
- Dry::Core::ClassAttributes
- Defined in:
- core/lib/rom/plugins/relation/instrumentation.rb
Overview
Experimental plugin for configuring relations with an external instrumentation system like dry-monitor or ActiveSupport::Notifications
Instance Method Summary collapse
-
#instrument(&block) ⇒ Object
Execute a block using instrumentation.
Instance Method Details
#instrument(&block) ⇒ Object
Execute a block using instrumentation
50 51 52 |
# File 'core/lib/rom/plugins/relation/instrumentation.rb', line 50 def instrument(&block) notifications.instrument(self.class.adapter, name: name.relation, **notification_payload(self), &block) end |