# File lib/new_relic/agent/transaction/segment.rb, line 21
        def record_metrics
          metric_cache.record_scoped_and_unscoped name, duration, exclusive_duration
          if unscoped_metrics
            metric_cache.record_unscoped unscoped_metrics, duration, exclusive_duration
          end
        end