Class NoopHistogram

java.lang.Object
org.opensearch.telemetry.metrics.noop.NoopHistogram
All Implemented Interfaces:
Histogram

@InternalApi public class NoopHistogram extends Object implements Histogram
No-op Histogram
  • Field Details

    • INSTANCE

      public static final NoopHistogram INSTANCE
      No-op Histogram instance
  • Method Details

    • record

      public void record(double value)
      Description copied from interface: Histogram
      record value.
      Specified by:
      record in interface Histogram
      Parameters:
      value - value to be added.
    • record

      public void record(double value, Tags tags)
      Description copied from interface: Histogram
      record value along with the attributes.
      Specified by:
      record in interface Histogram
      Parameters:
      value - value to be added.
      tags - attributes/dimensions of the metric.