Interface DoubleHistogramBuilder


public interface DoubleHistogramBuilder
Builder class for DoubleHistogram.
Since:
1.10.0
  • Method Details

    • setDescription

      DoubleHistogramBuilder setDescription(String description)
      Sets the description for this instrument.
      Parameters:
      description - The description.
      See Also:
    • setUnit

      Sets the unit of measure for this instrument.
      Parameters:
      unit - The unit. Instrument units must be 63 or fewer ASCII characters.
      See Also:
    • setExplicitBucketBoundariesAdvice

      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 - The explicit bucket boundaries advice.
      Since:
      1.32.0
      See Also:
    • ofLongs

      Sets the Counter for recording long values.
    • build

      Builds and returns a Histogram instrument with the configuration.
      Returns:
      The Histogram instrument.