Package io.opentelemetry.api.metrics
Class DefaultMeter.NoopDoubleHistogramBuilder
- java.lang.Object
-
- io.opentelemetry.api.metrics.DefaultMeter.NoopDoubleHistogramBuilder
-
- All Implemented Interfaces:
DoubleHistogramBuilder
- Enclosing class:
- DefaultMeter
private static class DefaultMeter.NoopDoubleHistogramBuilder extends java.lang.Object implements DoubleHistogramBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private static DoubleHistogramNOOPprivate static LongHistogramBuilderNOOP_LONG_HISTOGRAM_BUILDER
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopDoubleHistogramBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleHistogrambuild()Builds and returns a Histogram instrument with the configuration.LongHistogramBuilderofLongs()Sets the Counter for recordinglongvalues.DoubleHistogramBuildersetDescription(java.lang.String description)Sets the description for this instrument.DoubleHistogramBuildersetUnit(java.lang.String unit)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.DoubleHistogramBuilder
setExplicitBucketBoundariesAdvice
-
-
-
-
Field Detail
-
NOOP
private static final DoubleHistogram NOOP
-
NOOP_LONG_HISTOGRAM_BUILDER
private static final LongHistogramBuilder NOOP_LONG_HISTOGRAM_BUILDER
-
-
Method Detail
-
setDescription
public DoubleHistogramBuilder setDescription(java.lang.String description)
Description copied from interface:DoubleHistogramBuilderSets the description for this instrument.- Specified by:
setDescriptionin interfaceDoubleHistogramBuilder- Parameters:
description- The description.- See Also:
- Instrument Description
-
setUnit
public DoubleHistogramBuilder setUnit(java.lang.String unit)
Description copied from interface:DoubleHistogramBuilderSets the unit of measure for this instrument.- Specified by:
setUnitin interfaceDoubleHistogramBuilder- Parameters:
unit- The unit. Instrument units must be 63 or fewer ASCII characters.- See Also:
- Instrument Unit
-
ofLongs
public LongHistogramBuilder ofLongs()
Description copied from interface:DoubleHistogramBuilderSets the Counter for recordinglongvalues.- Specified by:
ofLongsin interfaceDoubleHistogramBuilder
-
build
public DoubleHistogram build()
Description copied from interface:DoubleHistogramBuilderBuilds and returns a Histogram instrument with the configuration.- Specified by:
buildin interfaceDoubleHistogramBuilder- Returns:
- The Histogram instrument.
-
-