BeforeMetricCallback typedef
This function is called right before a metric is about to be emitted. Can return true to emit the metric, or false to drop it.
Implementation
typedef BeforeMetricCallback = bool Function(
String key, {
Map<String, String>? tags,
});