Top Description Methods
io.opentelemetry.api.metrics

public Interface DoubleHistogramBuilder

Known Direct Implementers
io.opentelemetry.api.metrics.DefaultMeter.NoopDoubleHistogramBuilder
Imports
java.util.List

Builder class for DoubleHistogram.
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public DoubleHistogram

Returns:

The Histogram instrument.
build
()

Builds and returns a Histogram instrument with the configuration.

public LongHistogramBuilder
ofLongs()

Sets the Counter for recording long values.

public DoubleHistogramBuilder
setDescription(String
The description.
description
)

Sets the description for this instrument.

public default DoubleHistogramBuilder
setExplicitBucketBoundariesAdvice(List<Double>
The explicit bucket boundaries advice.
bucketBoundaries
)

Set the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.

public DoubleHistogramBuilder
setUnit(String
The unit. Instrument units must be 63 or fewer ASCII characters.
unit
)

Sets the unit of measure for this instrument.

Method Detail

buildback to summary
public DoubleHistogram build()

Builds and returns a Histogram instrument with the configuration.

Returns:DoubleHistogram

The Histogram instrument.

ofLongsback to summary
public LongHistogramBuilder ofLongs()

Sets the Counter for recording long values.

setDescriptionback to summary
public DoubleHistogramBuilder setDescription(String description)

Sets the description for this instrument.

Parameters
description:String

The description.

See Also
Instrument Description
setExplicitBucketBoundariesAdviceback to summary
public default DoubleHistogramBuilder setExplicitBucketBoundariesAdvice(List<Double> bucketBoundaries)

Set the explicit bucket buckets boundaries advice, which suggests the recommended set of explicit bucket boundaries for this histogram.

Parameters
bucketBoundaries:List<Double>

The explicit bucket boundaries advice.

Since
1.32.0
See Also
Explicit bucket boundaries advisory parameter
setUnitback to summary
public DoubleHistogramBuilder setUnit(String unit)

Sets the unit of measure for this instrument.

Parameters
unit:String

The unit. Instrument units must be 63 or fewer ASCII characters.

See Also
Instrument Unit