codahale/metrics — Issue #160: EhChache decorator is unusable in "by configuration" form  
Author: martel
Created: 2012-02-17 10:40:48+00:00
State: open

Current implementation of Metrics' ehcache decorator relies on static factory method "instrument". Ehcache has support for declarative way of configuring decorators which makes Metrics' decorator pretty unusable (as it wont register majority of meters):

```xml

```

http://ehcache.org/documentation/apis/cache-decorators#by-configuration

If Metrics would support this configuration style, it would enable it to monitor ehcache second level Hibernate caches.