Class: Datadog::Contrib::Resque::Integration

Inherits:
Object
  • Object
show all
Includes:
Integration
Defined in:
lib/ddtrace/contrib/resque/integration.rb

Overview

Description of Resque integration

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Integration

included

Class Attribute Details

.sync_writerObject

Globally-acccesible reference for pre-forking optimization



32
33
34
# File 'lib/ddtrace/contrib/resque/integration.rb', line 32

def sync_writer
  @sync_writer
end

Class Method Details

.present?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/ddtrace/contrib/resque/integration.rb', line 18

def self.present?
  super && defined?(::Resque)
end

.versionObject



14
15
16
# File 'lib/ddtrace/contrib/resque/integration.rb', line 14

def self.version
  Gem.loaded_specs['resque'] && Gem.loaded_specs['resque'].version
end

Instance Method Details

#default_configurationObject



22
23
24
# File 'lib/ddtrace/contrib/resque/integration.rb', line 22

def default_configuration
  Configuration::Settings.new
end

#patcherObject



26
27
28
# File 'lib/ddtrace/contrib/resque/integration.rb', line 26

def patcher
  Patcher
end