Package io.opentelemetry.api.metrics
Interface DoubleValueObserver.Builder
-
- All Superinterfaces:
AsynchronousInstrument.Builder,Instrument.Builder
- Enclosing interface:
- DoubleValueObserver
public static interface DoubleValueObserver.Builder extends AsynchronousInstrument.Builder
Builder class forDoubleValueObserver.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleValueObserverbuild()Builds and returns aInstrumentwith the desired options.DoubleValueObserver.BuildersetDescription(String description)Sets the description of theInstrument.DoubleValueObserver.BuildersetUnit(String unit)Sets the unit of theInstrument.
-
-
-
Method Detail
-
setDescription
DoubleValueObserver.Builder setDescription(String description)
Description copied from interface:Instrument.BuilderSets the description of theInstrument.Default value is
"".- Specified by:
setDescriptionin interfaceInstrument.Builder- Parameters:
description- the description of the Instrument.- Returns:
- this.
-
setUnit
DoubleValueObserver.Builder setUnit(String unit)
Description copied from interface:Instrument.BuilderSets the unit of theInstrument.Default value is
"1".- Specified by:
setUnitin interfaceInstrument.Builder- Parameters:
unit- the unit of the Instrument.- Returns:
- this.
-
build
DoubleValueObserver build()
Description copied from interface:Instrument.BuilderBuilds and returns aInstrumentwith the desired options.- Specified by:
buildin interfaceAsynchronousInstrument.Builder- Specified by:
buildin interfaceInstrument.Builder- Returns:
- a
Instrumentwith the desired options.
-
-