private final Meter meter;
private final Class<? extends Throwable> exceptionClass;
public ExceptionMeteredMetricsFilter(MetricRegistry metricRegistry, ResourceInfo resourceInfo) {
final ExceptionMetered annotation = resourceInfo.getResourceMethod().getAnnotation(ExceptionMetered.class);
meter = metricRegistry.meter(chooseName(annotation.name(), annotation.absolute(), resourceInfo.getResourceMethod(), ExceptionMetered.DEFAULT_NAME_SUFFIX));
exceptionClass = annotation.cause();
}
@Override
public void filter(ContainerRequestContext requestContext) throws IOException {