The base name for all metrics created from this builder.
The base name for all metrics created from this builder.
The MetricBuilder that can be used for creating timers, counters, etc.
(Since version ) see corresponding Javadoc for more information.
The mixin trait for creating a class which is instrumented with metrics.
Use it as follows:
As an alternative to your own
Instrumentedas above, it is possible to use DefaultInstrumented instead.By default metric names are prefixed with the name of the current class. You can override this metric base name. For example:
If you want to use hdrhistograms, you can override the metric builder as follows:
See the the manual for more instructions on using hdrhistogram.