# File lib/new_relic/agent/instrumentation/mongo.rb, line 102 def save_with_new_relic_trace(doc, opts = {}, &block) segment = new_relic_start_segment :save, new_relic_default_payload begin result = NewRelic::Agent.disable_all_tracing do save_without_new_relic_trace(doc, opts, &block) end new_relic_notice_statement(segment.start_time, doc, :save) if segment result ensure segment.finish if segment end end