Restore high-cardinality Lettuce metrics for debugging

This commit is contained in:
Jon Chambers
2024-02-08 19:17:42 -05:00
committed by Jon Chambers
parent 587c385936
commit c5dc01ee11
2 changed files with 1 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ public class MetricsUtil {
return defaultDistributionStatisticConfig.merge(config);
}
})
// Remove high-cardinality `command` and `remote` tags from Lettuce metrics and prepend "chat." to meter names
// Remove high-cardinality `command` tags from Lettuce metrics and prepend "chat." to meter names
.meterFilter(new MeterFilter() {
@Override
public Meter.Id map(final Meter.Id id) {
@@ -84,7 +84,6 @@ public class MetricsUtil {
return id.withName(PREFIX + "." + id.getName())
.replaceTags(id.getTags().stream()
.filter(tag -> !"command".equals(tag.getKey()))
.filter(tag -> !"remote".equals(tag.getKey()))
.toList());
}