Class NoopCounter

java.lang.Object
org.opensearch.telemetry.metrics.noop.NoopCounter
All Implemented Interfaces:
Counter

@InternalApi public class NoopCounter extends Object implements Counter
No-op Counter
  • Field Details

    • INSTANCE

      public static final NoopCounter INSTANCE
      No-op Counter instance
  • Method Details

    • add

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

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