A meter of the field's type will be created and injected into Spring-managed beans after construction but before initialization. It will be up to the user to interact with the metric. This annotation can be used on fields of type Meter, Timer, Counter, and Histogram.
@Metric public Histogram histogram;
This may also be used to register a metric, which is useful for creating a histogram with a custom Reservoir.
@Metric public Histogram uniformHistogram = new Histogram(new UniformReservoir());
public abstract String name
public abstract boolean absolute
true, use the given name as an absolute name. If
false, use the given name relative to the annotated class.
Copyright © 2012-2013. All Rights Reserved.