lib/ting_yun/instrumentation/mongo.rb in tingyun_rpm-1.6.1 vs lib/ting_yun/instrumentation/mongo.rb in tingyun_rpm-3.2.0
- old
+ new
@@ -56,11 +56,11 @@
end
end
def instrument
::Mongo::Collection.class_eval do
- def save_with_tingyun(doc, opts = {}, &block)
+ def save_with_tingyun(doc, opts = {}, &block) y
klass_name, *metrics = tingyun_generate_metrics(:save)
TingYun::Agent::MethodTracerHelpers.trace_execution_scoped(metrics, opts, method(:record_mongo_duration), klass_name) do
save_without_tingyun(doc, opts, &block)
end
end
@@ -90,10 +90,10 @@
depends_on do
!::TingYun::Agent.config[:disable_mongo]
end
depends_on do
- defined?(::Mongo)
+ defined?(::Mongo) && false
end
depends_on do
TingYun::Agent::Datastore::Mongo.supported_version? && !TingYun::Agent::Datastore::Mongo.unsupported_2x?
end