Class: Datadog::Contrib::Elasticsearch::Integration

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

Overview

Description of Elasticsearch integration

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Integration

included

Class Method Details

.compatible?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/ddtrace/contrib/elasticsearch/integration.rb', line 23

def self.compatible?
  super && version >= Gem::Version.new('1.0.0')
end

.present?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/ddtrace/contrib/elasticsearch/integration.rb', line 19

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

.versionObject



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

def self.version
  Gem.loaded_specs['elasticsearch-transport'] \
    && Gem.loaded_specs['elasticsearch-transport'].version
end

Instance Method Details

#default_configurationObject



27
28
29
# File 'lib/ddtrace/contrib/elasticsearch/integration.rb', line 27

def default_configuration
  Configuration::Settings.new
end

#patcherObject



31
32
33
# File 'lib/ddtrace/contrib/elasticsearch/integration.rb', line 31

def patcher
  Patcher
end