lib/opentelemetry/instrumentation/mongo/instrumentation.rb in opentelemetry-instrumentation-mongo-0.18.4 vs lib/opentelemetry/instrumentation/mongo/instrumentation.rb in opentelemetry-instrumentation-mongo-0.19.0

- old
+ new

@@ -23,15 +23,15 @@ compatible do gem_version >= MINIMUM_VERSION end option :peer_service, default: nil, validate: :string - option :db_statement, default: :include, validate: ->(opt) { %I[omit include].include?(opt) } + option :db_statement, default: :include, validate: %I[omit include] private def gem_version - Gem.loaded_specs['mongo']&.version + Gem::Version.new(::Mongo::VERSION) end def require_dependencies require_relative 'subscriber' end