diff --git a/newrelic-agent/src/main/java/com/newrelic/agent/tracers/metricname/MetricNameFormats.java b/newrelic-agent/src/main/java/com/newrelic/agent/tracers/metricname/MetricNameFormats.java index 4ccd72230e..e1d0761a67 100644 --- a/newrelic-agent/src/main/java/com/newrelic/agent/tracers/metricname/MetricNameFormats.java +++ b/newrelic-agent/src/main/java/com/newrelic/agent/tracers/metricname/MetricNameFormats.java @@ -19,8 +19,10 @@ public class MetricNameFormats { private static final Cache cmsToMnf = Caffeine.newBuilder() - .executor(Runnable::run) - .build(); + .maximumSize(10_000) + .executor(Runnable::run) + .recordStats() + .build(); private MetricNameFormats() { }