lib/new_relic/agent/instrumentation/mongo.rb in newrelic_rpm-8.9.0 vs lib/new_relic/agent/instrumentation/mongo.rb in newrelic_rpm-8.10.0
- old
+ new
@@ -1,8 +1,9 @@
# 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.
+# frozen_string_literal: true
DependencyDetection.defer do
named :mongo
depends_on do
@@ -16,10 +17,10 @@
end
NewRelic::Agent::Datastores::Mongo.is_supported_version?
end
executes do
- NewRelic::Agent.logger.info 'Installing Mongo instrumentation'
+ NewRelic::Agent.logger.info('Installing Mongo instrumentation')
install_mongo_command_subscriber
end
def install_mongo_command_subscriber
require 'new_relic/agent/instrumentation/mongodb_command_subscriber'