Set<MetricKey> getTrackedMetrics() {
        return ledger.metricMap.keySet();
    }
This is called whenever temporality changes, resets the value tracker for metrics.
clients/src/main/java/org/apache/kafka/common/telemetry/internals/KafkaMetricsCollector.java