class OpenTelemetry::Instrumentation::DelayedJob::Instrumentation

Instrumentation class that detects and installs the DelayedJob instrumentation

Constants

MINIMUM_VERSION

Private Instance Methods

gem_version() click to toggle source
# File lib/opentelemetry/instrumentation/delayed_job/instrumentation.rb, line 29
def gem_version
  Gem.loaded_specs['delayed_job'].version
end
register_tracer_plugin() click to toggle source
# File lib/opentelemetry/instrumentation/delayed_job/instrumentation.rb, line 37
def register_tracer_plugin
  ::Delayed::Worker.plugins << Plugins::TracerPlugin
end
require_dependencies() click to toggle source
# File lib/opentelemetry/instrumentation/delayed_job/instrumentation.rb, line 33
def require_dependencies
  require_relative 'plugins/tracer_plugin'
end