Package io.opentelemetry.api.metrics
Interface DoubleUpDownCounterBuilder
-
- All Superinterfaces:
InstrumentBuilder
,SynchronousInstrumentBuilder
public interface DoubleUpDownCounterBuilder extends SynchronousInstrumentBuilder
Builder class forDoubleUpDownCounter
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleUpDownCounter
build()
Builds and returns aInstrument
with the desired options.DoubleUpDownCounterBuilder
setDescription(String description)
Sets the description of theInstrument
.DoubleUpDownCounterBuilder
setUnit(String unit)
Sets the unit of theInstrument
.
-
-
-
Method Detail
-
setDescription
DoubleUpDownCounterBuilder setDescription(String description)
Description copied from interface:InstrumentBuilder
Sets the description of theInstrument
.Default value is
""
.- Specified by:
setDescription
in interfaceInstrumentBuilder
- Parameters:
description
- the description of the Instrument.- Returns:
- this.
-
setUnit
DoubleUpDownCounterBuilder setUnit(String unit)
Description copied from interface:InstrumentBuilder
Sets the unit of theInstrument
.Default value is
"1"
.- Specified by:
setUnit
in interfaceInstrumentBuilder
- Parameters:
unit
- the unit of the Instrument.- Returns:
- this.
-
build
DoubleUpDownCounter build()
Description copied from interface:InstrumentBuilder
Builds and returns aInstrument
with the desired options.- Specified by:
build
in interfaceInstrumentBuilder
- Specified by:
build
in interfaceSynchronousInstrumentBuilder
- Returns:
- a
Instrument
with the desired options.
-
-