dropwizard/metrics — pull request #545 by mveitas (2014-03-21 01:59:22+00:00)
Title: Add the ability to specify the base name as a filter init-param for the metrics captured in the AbstractInstrumentedFilter

This PR adds the ability to specify the base name of the metrics collected by an instance of the AbstractInstrumentedFilter as a filter init-param, `prefix-name`. If no init-param is specified, it will fall back to the name of the filter class.

This is also handy in the case where multiple instances of the InstrumentedFilter need to be used to instrument different url-patterns. An example is seen below:

```

instrumentedFilter
com.codahale.metrics.servlet.InstrumentedFilter

name-prefix
foo

instrumentedFilter
/foo/*

instrumentedFilter2
com.codahale.metrics.servlet.InstrumentedFilter

name-prefix
bar

instrumentedFilter2
/bar/*

```