addMetricFilter

fun addMetricFilter(metricName: String, keysToRetain: Set<String>)(source)

Registers a filter that restricts the attribute keys retained on a given metric during aggregation.