Package io.opentelemetry.api.metrics
Interface DoubleHistogramBuilder
-
public interface DoubleHistogramBuilderBuilder class forDoubleHistogram.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleHistogrambuild()Builds and returns aDoubleHistogramwith the desired options.LongHistogramBuilderofLongs()Sets the counter for recordinglongvalues.DoubleHistogramBuildersetDescription(String description)Sets the description for this instrument.DoubleHistogramBuildersetUnit(String unit)Sets the unit of measure for this instrument.
-
-
-
Method Detail
-
setDescription
DoubleHistogramBuilder setDescription(String description)
Sets the description for this instrument.Description strings should follow the instrument description rules: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-description
-
setUnit
DoubleHistogramBuilder setUnit(String unit)
Sets the unit of measure for this instrument.Unit strings should follow the instrument unit rules: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-unit
-
ofLongs
LongHistogramBuilder ofLongs()
Sets the counter for recordinglongvalues.
-
build
DoubleHistogram build()
Builds and returns aDoubleHistogramwith the desired options.- Returns:
- a
DoubleHistogramwith the desired options.
-
-