Interface LongHistogram

All Superinterfaces:
Instrument

public interface LongHistogram extends Instrument
Record arbitrary values that are summarized statistically, useful for percentiles and histograms.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LongHistogram
    Noop histogram for tests
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    record(long value)
    Record a sample for the measured item
    void
    record(long value, Map<String,Object> attributes)
    Record a sample for the measured item

    Methods inherited from interface org.elasticsearch.telemetry.metric.Instrument

    getName
  • Field Details

    • NOOP

      static final LongHistogram NOOP
      Noop histogram for tests
  • Method Details

    • record

      void record(long value)
      Record a sample for the measured item
      Parameters:
      value -
    • record

      void record(long value, Map<String,Object> attributes)
      Record a sample for the measured item
      Parameters:
      attributes - key-value pairs to associate with the current sample