Module: Skylight::Probes::ActiveRecord::FutureResult::FutureResultInstrumentation Private
- Defined in:
- lib/skylight/probes/active_record_async.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Applied to FutureResult (Rails <= 8.1) Handles both the outer instrumentation and the execute_or_wait hook
Instance Method Summary collapse
- #result ⇒ Object private
Instance Method Details
#result ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
44 45 46 47 48 |
# File 'lib/skylight/probes/active_record_async.rb', line 44 def result(*, **) name = @args&.[](1) ActiveSupport::Notifications.instrument("future_result.active_record", { name: name }) { super } end |