Package io.opentelemetry.api.metrics
Interface LongHistogramBuilder
public interface LongHistogramBuilder
Builder class for
LongHistogram
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns aLongHistogram
with the desired options.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.Description strings should follow the instrument description rules: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-description
-
setUnit
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
-
build
LongHistogram build()Builds and returns aLongHistogram
with the desired options.- Returns:
- a
LongHistogram
with the desired options.
-