The log message is not in the good condition. 'metric' is the original m...

...etric to be aggregated. It will never match an aggregated metric. If the aggregate_metrics array is empty, this is where it means the metric didn't match any rule
@procule disregard my previous comment.  This logic is sound, it is to ensure original and unaggregated metrics still get passed through, should've read into the code more before commenting.