Class: Datadog::Contrib::Ethon::Integration

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

Overview

Description of Ethon integration

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Integration

included

Class Method Details

.present?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/ddtrace/contrib/ethon/integration.rb', line 17

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

.versionObject



13
14
15
# File 'lib/ddtrace/contrib/ethon/integration.rb', line 13

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

Instance Method Details

#default_configurationObject



21
22
23
# File 'lib/ddtrace/contrib/ethon/integration.rb', line 21

def default_configuration
  Configuration::Settings.new
end

#patcherObject



25
26
27
# File 'lib/ddtrace/contrib/ethon/integration.rb', line 25

def patcher
  Patcher
end