# File lib/new_relic/agent/datastores/metric_helper.rb, line 87 def self.metrics_for(product, operation, collection = nil, generic_product = nil, host=nil, port_path_or_id=nil) product, operation, collection = product_operation_collection_for(product, operation, collection, generic_product) # Order of these metrics matters--the first metric in the list will # be treated as the scoped metric in a bunch of different cases. metrics = unscoped_metrics_for(product, operation, collection, host, port_path_or_id) metrics.unshift scoped_metric_for(product, operation, collection) metrics end