public class InstrumentedFilter extends AbstractInstrumentedFilter
AbstractInstrumentedFilter
which provides a default set of response codes
to capture information about. Use it in your servlet.xml like this:
<filter>
<filter-name>instrumentedFilter</filter-name>
<filter-class>com.codahale.metrics.servlet.InstrumentedFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>instrumentedFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Modifier and Type | Field and Description |
---|---|
static String |
REGISTRY_ATTRIBUTE |
Constructor and Description |
---|
InstrumentedFilter()
Creates a new instance of the filter.
|
public static final String REGISTRY_ATTRIBUTE
Copyright © 2014. All Rights Reserved.