Class: Datadog::Contrib::Resque::Integration
- Inherits:
-
Object
- Object
- Datadog::Contrib::Resque::Integration
- Includes:
- Integration
- Defined in:
- lib/ddtrace/contrib/resque/integration.rb
Overview
Description of Resque integration
Constant Summary collapse
- MINIMUM_VERSION =
Gem::Version.new('1.0')
- MAXIMUM_VERSION =
Maximum is first version it’s NOT compatible with (not inclusive)
Gem::Version.new('3.0')
Class Attribute Summary collapse
-
.sync_writer ⇒ Object
Globally-acccesible reference for pre-forking optimization.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Integration
Class Attribute Details
.sync_writer ⇒ Object
Globally-acccesible reference for pre-forking optimization
43 44 45 |
# File 'lib/ddtrace/contrib/resque/integration.rb', line 43 def sync_writer @sync_writer end |
Class Method Details
.compatible? ⇒ Boolean
27 28 29 30 31 |
# File 'lib/ddtrace/contrib/resque/integration.rb', line 27 def self.compatible? super \ && version >= MINIMUM_VERSION \ && version < MAXIMUM_VERSION end |
.loaded? ⇒ Boolean
23 24 25 |
# File 'lib/ddtrace/contrib/resque/integration.rb', line 23 def self.loaded? !defined?(::Resque).nil? end |
.version ⇒ Object
19 20 21 |
# File 'lib/ddtrace/contrib/resque/integration.rb', line 19 def self.version Gem.loaded_specs['resque'] && Gem.loaded_specs['resque'].version end |
Instance Method Details
#default_configuration ⇒ Object
33 34 35 |
# File 'lib/ddtrace/contrib/resque/integration.rb', line 33 def default_configuration Configuration::Settings.new end |
#patcher ⇒ Object
37 38 39 |
# File 'lib/ddtrace/contrib/resque/integration.rb', line 37 def patcher Patcher end |