Class: Datadog::Contrib::Elasticsearch::Integration
- Inherits:
-
Object
- Object
- Datadog::Contrib::Elasticsearch::Integration
- 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
Class Method Details
.compatible? ⇒ 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
19 20 21 |
# File 'lib/ddtrace/contrib/elasticsearch/integration.rb', line 19 def self.present? super && defined?(::Elasticsearch::Transport) end |
.version ⇒ Object
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_configuration ⇒ Object
27 28 29 |
# File 'lib/ddtrace/contrib/elasticsearch/integration.rb', line 27 def default_configuration Configuration::Settings.new end |
#patcher ⇒ Object
31 32 33 |
# File 'lib/ddtrace/contrib/elasticsearch/integration.rb', line 31 def patcher Patcher end |