# File lib/new_relic/agent/method_tracer_helpers.rb, line 27 def record_metrics(state, first_name, other_names, duration, exclusive, options) record_scoped_metric = options.has_key?(:scoped_metric) ? options[:scoped_metric] : true stat_engine = NewRelic::Agent.instance.stats_engine if record_scoped_metric stat_engine.record_scoped_and_unscoped_metrics(state, first_name, other_names, duration, exclusive) else metrics = [first_name].concat(other_names) stat_engine.record_unscoped_metrics(state, metrics, duration, exclusive) end end