Sha256: ce47bb567f9a8a07c8de0fc53659306e91db5794d124d829e69ca45536d0bfb2
Contents?: true
Size: 683 Bytes
Versions: 10
Compression:
Stored size: 683 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. module NewRelic module Agent module Datastores module Mongo def self.is_supported_version? defined?(::Mongo) && is_monitoring_enabled? end def self.is_unsupported_2x? defined?(::Mongo::VERSION) && Gem::Version.new(::Mongo::VERSION).segments[0] == 2 && !self.is_monitoring_enabled? end def self.is_monitoring_enabled? defined?(::Mongo::Monitoring) # @since 2.1.0 end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems