Top Description Methods
io.opentelemetry.api.metrics

public Interface LongHistogramBuilder

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

Builder class for LongHistogram.
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public LongHistogram

Returns:

The Histogram instrument.
build
()

Builds and returns a Histogram instrument with the configuration.

public LongHistogramBuilder
setDescription(String
The description.
description
)

Sets the description for this instrument.

public default LongHistogramBuilder
setExplicitBucketBoundariesAdvice(List<Long>
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 LongHistogramBuilder
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 LongHistogram build()

Builds and returns a Histogram instrument with the configuration.

Returns:LongHistogram

The Histogram instrument.

setDescriptionback to summary
public LongHistogramBuilder setDescription(String description)

Sets the description for this instrument.

Parameters
description:String

The description.

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

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

Parameters
bucketBoundaries:List<Long>

The explicit bucket boundaries advice.

Since
1.32.0
See Also
Explicit bucket boundaries advisory parameter
setUnitback to summary
public LongHistogramBuilder 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