Sha256: 82dfd68e02bacfef75a4c2394ebf9a412d9f2f8dacfc0472ea5434c6403d6aca
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
# typed: false 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-0.53.0 | lib/ddtrace/contrib/mongodb/integration.rb |
ddtrace-0.52.0 | lib/ddtrace/contrib/mongodb/integration.rb |