@ThreadSafe
public interface Meter
There are two ways to record measurements:
TODO: Update comment.
DoubleCounter.Builder doubleCounterBuilder(java.lang.String name)
DoubleCounter
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleCounter.Builder
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.LongCounter.Builder longCounterBuilder(java.lang.String name)
LongCounter
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongCounter.Builder
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.DoubleUpDownCounter.Builder doubleUpDownCounterBuilder(java.lang.String name)
DoubleUpDownCounter
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleCounter.Builder
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.LongUpDownCounter.Builder longUpDownCounterBuilder(java.lang.String name)
LongUpDownCounter
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongCounter.Builder
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.DoubleValueRecorder.Builder doubleValueRecorderBuilder(java.lang.String name)
DoubleValueRecorder
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleValueRecorder
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.LongValueRecorder.Builder longValueRecorderBuilder(java.lang.String name)
LongValueRecorder
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongValueRecorder
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.DoubleSumObserver.Builder doubleSumObserverBuilder(java.lang.String name)
DoubleSumObserver
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleSumObserver
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.LongSumObserver.Builder longSumObserverBuilder(java.lang.String name)
LongSumObserver
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongSumObserver
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.DoubleUpDownSumObserver.Builder doubleUpDownSumObserverBuilder(java.lang.String name)
DoubleUpDownSumObserver
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleUpDownObserver
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.LongUpDownSumObserver.Builder longUpDownSumObserverBuilder(java.lang.String name)
LongUpDownSumObserver
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongUpDownSumObserver
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.DoubleValueObserver.Builder doubleValueObserverBuilder(java.lang.String name)
DoubleValueObserver
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.DoubleValueObserver
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.LongValueObserver.Builder longValueObserverBuilder(java.lang.String name)
LongValueObserver
.name
- the name of the instrument. Should be a ASCII string with a length no greater than
255 characters.LongValueObserver
.java.lang.NullPointerException
- if name
is null.java.lang.IllegalArgumentException
- if different metric with the same name already registered.java.lang.IllegalArgumentException
- if the name
does not match the requirements.BatchRecorder newBatchRecorder(java.lang.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.