Sha256: a9b8273ea6ea10c05b0319c55e6f58baff02b4569480f10509961d6670e0ac18
Contents?: true
Size: 943 Bytes
Versions: 5
Compression:
Stored size: 943 Bytes
Contents
# typed: false require 'ddtrace/contrib/integration' require 'ddtrace/contrib/elasticsearch/configuration/settings' require 'ddtrace/contrib/elasticsearch/patcher' module Datadog module Contrib module Elasticsearch # Description of Elasticsearch integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('1.0.0') register_as :elasticsearch, auto_patch: true def self.version Gem.loaded_specs['elasticsearch-transport'] \ && Gem.loaded_specs['elasticsearch-transport'].version end def self.loaded? !defined?(::Elasticsearch::Transport).nil? end def self.compatible? super && version >= MINIMUM_VERSION end def default_configuration Configuration::Settings.new end def patcher Patcher end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems