The DefaultCounterService has the code:
if (metricName.startsWith("counter.") || metricName.startsWith("meter.")) {
return metricName;
}
Meanwhile BufferCounterService:
if (metricName.startsWith("counter") || metricName.startsWith("meter")) {
return metricName;
}
That doesn't look consistent and breaks our project when we switch from Java 7 to Java 8. Just because we can't read spring.metrics.counter.* from the Redis properly any more.
See spring-attic/counter#3 for more info.