Package io.opentelemetry.api.metrics
Interface LongHistogramBuilder
-
public interface LongHistogramBuilderBuilder class forLongHistogram.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LongHistogrambuild()Builds and returns aLongHistogramwith the desired options.DoubleHistogramBuilderofDoubles()Sets the histogram for recordingdoublevalues.LongHistogramBuildersetDescription(String description)Sets the description for this instrument.LongHistogramBuildersetUnit(String unit)Sets the unit of measure for this instrument.
-
-
-
Method Detail
-
setDescription
LongHistogramBuilder 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
LongHistogramBuilder 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
-
ofDoubles
DoubleHistogramBuilder ofDoubles()
Sets the histogram for recordingdoublevalues.
-
build
LongHistogram build()
Builds and returns aLongHistogramwith the desired options.- Returns:
- a
LongHistogramwith the desired options.
-
-