Sha256: 00e956c96c414b2b1c29f4633137ac2ed10483f2186870801cd044016a187c44
Contents?: true
Size: 847 Bytes
Versions: 25
Compression:
Stored size: 847 Bytes
Contents
require 'ddtrace/contrib/integration' require 'ddtrace/contrib/mongodb/configuration/settings' require 'ddtrace/contrib/mongodb/patcher' module Datadog module Contrib module MongoDB # Description of MongoDB integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('2.1.0') register_as :mongo, auto_patch: true def self.version Gem.loaded_specs['mongo'] && Gem.loaded_specs['mongo'].version end def self.loaded? !defined?(::Mongo::Monitoring::Global).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
25 entries across 25 versions & 2 rubygems