Class: Skylight::Probes::DelayedJob::Probe Private
- Defined in:
- lib/skylight/probes/delayed_job.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.
122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/skylight/probes/delayed_job.rb', line 122 def install return unless validate_version && plugin_defined? ::Delayed::Worker.plugins = [Skylight::Probes::DelayedJob::Plugin] | ::Delayed::Worker.plugins ::Delayed::Backend::Base.class_eval do alias_method :payload_object_without_sk, :payload_object def payload_object Skylight::Probes::DelayedJob::InstrumentationProxy.new(payload_object_without_sk) end end end |