@ThreadSafe public interface Meter
There are two ways to record measurements:
TODO: Update comment.
DoubleCounter.Builder doubleCounterBuilder(String name)
DoubleCounter.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleCounter.Builder.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.LongCounter.Builder longCounterBuilder(String name)
LongCounter.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongCounter.Builder.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.DoubleUpDownCounter.Builder doubleUpDownCounterBuilder(String name)
DoubleUpDownCounter.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleCounter.Builder.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.LongUpDownCounter.Builder longUpDownCounterBuilder(String name)
LongUpDownCounter.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongCounter.Builder.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.DoubleValueRecorder.Builder doubleValueRecorderBuilder(String name)
DoubleValueRecorder.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleValueRecorder.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.LongValueRecorder.Builder longValueRecorderBuilder(String name)
LongValueRecorder.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongValueRecorder.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.DoubleSumObserver.Builder doubleSumObserverBuilder(String name)
DoubleSumObserver.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleSumObserver.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.LongSumObserver.Builder longSumObserverBuilder(String name)
LongSumObserver.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongSumObserver.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.DoubleUpDownSumObserver.Builder doubleUpDownSumObserverBuilder(String name)
DoubleUpDownSumObserver.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleUpDownObserver.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.LongUpDownSumObserver.Builder longUpDownSumObserverBuilder(String name)
LongUpDownSumObserver.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongUpDownSumObserver.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.DoubleValueObserver.Builder doubleValueObserverBuilder(String name)
DoubleValueObserver.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleValueObserver.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.LongValueObserver.Builder longValueObserverBuilder(String name)
LongValueObserver.name - the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongValueObserver.NullPointerException - if name is null.IllegalArgumentException - if different metric with the same name already registered.IllegalArgumentException - if the name does not match the requirements.BatchRecorder newBatchRecorder(String... keyValuePairs)
keyValuePairs - The set of labels to associate with this recorder and all it's recordings.MeasureBatchRecorder that can be use to atomically record a set of
measurements associated with different Measures.