Class ExtendedDefaultMeter.NoopDoubleHistogramBuilder
- java.lang.Object
-
- io.opentelemetry.api.incubator.metrics.ExtendedDefaultMeter.NoopDoubleHistogramBuilder
-
- All Implemented Interfaces:
ExtendedDoubleHistogramBuilder
,DoubleHistogramBuilder
- Enclosing class:
- ExtendedDefaultMeter
private static class ExtendedDefaultMeter.NoopDoubleHistogramBuilder extends java.lang.Object implements ExtendedDoubleHistogramBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private static DoubleHistogram
NOOP
private static LongHistogramBuilder
NOOP_LONG_HISTOGRAM_BUILDER
-
Constructor Summary
Constructors Modifier Constructor Description private
NoopDoubleHistogramBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleHistogram
build()
Builds and returns a Histogram instrument with the configuration.LongHistogramBuilder
ofLongs()
Sets the Counter for recordinglong
values.DoubleHistogramBuilder
setDescription(java.lang.String description)
Sets the description for this instrument.DoubleHistogramBuilder
setUnit(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
-
Methods inherited from interface io.opentelemetry.api.incubator.metrics.ExtendedDoubleHistogramBuilder
setAttributesAdvice
-
-
-
-
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:DoubleHistogramBuilder
Sets the description for this instrument.- Specified by:
setDescription
in interfaceDoubleHistogramBuilder
- Parameters:
description
- The description.- See Also:
- Instrument Description
-
setUnit
public DoubleHistogramBuilder setUnit(java.lang.String unit)
Description copied from interface:DoubleHistogramBuilder
Sets the unit of measure for this instrument.- Specified by:
setUnit
in 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:DoubleHistogramBuilder
Sets the Counter for recordinglong
values.- Specified by:
ofLongs
in interfaceDoubleHistogramBuilder
-
build
public DoubleHistogram build()
Description copied from interface:DoubleHistogramBuilder
Builds and returns a Histogram instrument with the configuration.- Specified by:
build
in interfaceDoubleHistogramBuilder
- Returns:
- The Histogram instrument.
-
-