Class: Skylight::Probes::ActiveRecord::FutureResult::Probe Private
- Defined in:
- lib/skylight/probes/active_record_async.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #install ⇒ Object private
Instance Method Details
#install ⇒ 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.
112 113 114 115 116 117 118 119 120 121 |
# File 'lib/skylight/probes/active_record_async.rb', line 112 def install if defined?(::ActiveRecord::ConnectionAdapters::QueryIntent) # Rails >= 8.2 ::ActiveRecord::FutureResult.prepend(FutureResultInstrumentationRails82) ::ActiveRecord::ConnectionAdapters::QueryIntent.prepend(QueryIntentInstrumentation) else # Rails <= 8.1 ::ActiveRecord::FutureResult.prepend(FutureResultInstrumentation) end end |