Class InstrumentedFilter

java.lang.Object
io.dropwizard.metrics.servlet.AbstractInstrumentedFilter
io.dropwizard.metrics.servlet.InstrumentedFilter
All Implemented Interfaces:
jakarta.servlet.Filter

public class InstrumentedFilter extends AbstractInstrumentedFilter
Implementation of the 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>io.dropwizard.metrics.servlet.InstrumentedFilter</filter-class>
 </filter>
 <filter-mapping>
     <filter-name>instrumentedFilter</filter-name>
     <url-pattern>/*</url-pattern>
 </filter-mapping>
 
  • Field Details

    • REGISTRY_ATTRIBUTE

      public static final String REGISTRY_ATTRIBUTE
  • Constructor Details

    • InstrumentedFilter

      public InstrumentedFilter()
      Creates a new instance of the filter.