Package io.opentelemetry.api.metrics
Interface DoubleHistogramBuilder
public interface DoubleHistogramBuilder
Builder class for
DoubleHistogram.- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a Histogram instrument with the configuration.ofLongs()Sets the Counter for recordinglongvalues.setDescription(String description) Sets the description for this instrument.Sets the unit of measure for this instrument.
-
Method Details
-
setDescription
Sets the description for this instrument.- Parameters:
description- The description.- See Also:
-
setUnit
Sets the unit of measure for this instrument.- Parameters:
unit- The unit. Instrument units must be 63 or fewer ASCII characters.- See Also:
-
ofLongs
LongHistogramBuilder ofLongs()Sets the Counter for recordinglongvalues. -
build
DoubleHistogram build()Builds and returns a Histogram instrument with the configuration.- Returns:
- The Histogram instrument.
-