class Datadog::Contrib::Resque::Integration

Description of Resque integration

Constants

MAXIMUM_VERSION

Maximum is first version it's NOT compatible with (not inclusive)

MINIMUM_VERSION

Attributes

sync_writer[RW]

Globally-acccesible reference for pre-forking optimization

Public Class Methods

compatible?() click to toggle source
Calls superclass method
# File lib/ddtrace/contrib/resque/integration.rb, line 27
def self.compatible?
  super \
    && version >= MINIMUM_VERSION \
    && version < MAXIMUM_VERSION
end
loaded?() click to toggle source
# File lib/ddtrace/contrib/resque/integration.rb, line 23
def self.loaded?
  !defined?(::Resque).nil?
end
version() click to toggle source
# File lib/ddtrace/contrib/resque/integration.rb, line 19
def self.version
  Gem.loaded_specs['resque'] && Gem.loaded_specs['resque'].version
end

Public Instance Methods

default_configuration() click to toggle source
# File lib/ddtrace/contrib/resque/integration.rb, line 33
def default_configuration
  Configuration::Settings.new
end
patcher() click to toggle source
# File lib/ddtrace/contrib/resque/integration.rb, line 37
def patcher
  Patcher
end