Interface Counter

All Known Implementing Classes:
NoopCounter

@ExperimentalApi public interface Counter
Counter adds the value to the existing metric.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(double value)
    add value.
    void
    add(double value, Tags tags)
    add value along with the attributes.
  • Method Details

    • add

      void add(double value)
      add value.
      Parameters:
      value - value to be added.
    • add

      void add(double value, Tags tags)
      add value along with the attributes.
      Parameters:
      value - value to be added.
      tags - attributes/dimensions of the metric.