Class CounterMetric

java.lang.Object
io.sentry.metrics.Metric
io.sentry.metrics.CounterMetric

@Internal public final class CounterMetric extends Metric
Counters track a value that can only be incremented.
  • Constructor Details

  • Method Details

    • getValue

      public double getValue()
    • add

      public void add(double value)
      Description copied from class: Metric
      Adds a value to the metric
      Specified by:
      add in class Metric
    • getWeight

      public int getWeight()
      Specified by:
      getWeight in class Metric
    • serialize

      @NotNull public @NotNull Iterable<?> serialize()
      Specified by:
      serialize in class Metric