Package io.opentelemetry.api.metrics
Class DefaultMeter.NoopLongHistogramBuilder
java.lang.Object
io.opentelemetry.api.metrics.DefaultMeter.NoopLongHistogramBuilder
- All Implemented Interfaces:
LongHistogramBuilder
- Enclosing class:
DefaultMeter
private static class DefaultMeter.NoopLongHistogramBuilder
extends Object
implements LongHistogramBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns a Histogram instrument with the configuration.setDescription
(String description) Sets the description for this instrument.Sets the unit of measure for this instrument.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.opentelemetry.api.metrics.LongHistogramBuilder
setExplicitBucketBoundariesAdvice
-
Field Details
-
NOOP
-
-
Constructor Details
-
NoopLongHistogramBuilder
private NoopLongHistogramBuilder()
-
-
Method Details
-
setDescription
Description copied from interface:LongHistogramBuilder
Sets the description for this instrument.- Specified by:
setDescription
in interfaceLongHistogramBuilder
- Parameters:
description
- The description.- See Also:
-
setUnit
Description copied from interface:LongHistogramBuilder
Sets the unit of measure for this instrument.- Specified by:
setUnit
in interfaceLongHistogramBuilder
- Parameters:
unit
- The unit. Instrument units must be 63 or fewer ASCII characters.- See Also:
-
build
Description copied from interface:LongHistogramBuilder
Builds and returns a Histogram instrument with the configuration.- Specified by:
build
in interfaceLongHistogramBuilder
- Returns:
- The Histogram instrument.
-