Interface DoubleHistogramBuilder


public interface DoubleHistogramBuilder
Builder class for DoubleHistogram.
  • Method Details

    • setDescription

      DoubleHistogramBuilder setDescription(String description)
      Sets the description for this instrument.

      Description strings should follow the instrument description rules: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-description

    • setUnit

      Sets the unit of measure for this instrument.

      Unit strings should follow the instrument unit rules: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-unit

    • ofLongs

      Sets the counter for recording long values.
    • build

      Builds and returns a DoubleHistogram with the desired options.
      Returns:
      a DoubleHistogram with the desired options.