lib/new_relic/agent/agent.rb in newrelic_rpm-3.5.3.24 vs lib/new_relic/agent/agent.rb in newrelic_rpm-3.5.3.25

- old
+ new

@@ -905,10 +905,12 @@ # takes an array of arrays of spec and id, adds it into the # metric cache so we can save the collector some work by # sending integers instead of strings def fill_metric_id_cache(pairs_of_specs_and_ids) - Array(pairs_of_specs_and_ids).each do |metric_spec, metric_id| + Array(pairs_of_specs_and_ids).each do |metric_spec_hash, metric_id| + metric_spec = MetricSpec.new(metric_spec_hash['name'], + metric_spec_hash['scope']) @metric_ids[metric_spec] = metric_id end end # note - exceptions are logged in invoke_remote. If an exception is encountered here,