lib/new_relic/agent/datastores.rb in newrelic_rpm-8.2.0 vs lib/new_relic/agent/datastores.rb in newrelic_rpm-8.3.0
- old
+ new
@@ -11,11 +11,10 @@
# datastores not directly supported by the Ruby agent. It is intended to be
# primarily used by authors of 3rd-party datastore instrumentation.
#
# @api public
module Datastores
-
# @!group Tracing query methods
# Add Datastore tracing to a method. This properly generates the metrics
# for New Relic's Datastore features. It does not capture the actual
# query content into Transaction Traces. Use wrap if you want to provide
@@ -38,11 +37,11 @@
klass.class_eval do
method_name_without_newrelic = "#{method_name}_without_newrelic"
if NewRelic::Helper.instance_methods_include?(klass, method_name) &&
- !NewRelic::Helper.instance_methods_include?(klass, method_name_without_newrelic)
+ !NewRelic::Helper.instance_methods_include?(klass, method_name_without_newrelic)
visibility = NewRelic::Helper.instance_method_visibility(klass, method_name)
alias_method method_name_without_newrelic, method_name
@@ -200,9 +199,8 @@
if (txn = Tracer.current_transaction) && (segment = txn.current_segment) && segment.respond_to?(:notice_nosql_statement)
segment.notice_nosql_statement(statement)
end
nil
end
-
end
end
end