Class SetMetric

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

@Internal public final class SetMetric extends Metric
Sets track a set of values on which you can perform aggregations such as count_unique.
  • Constructor Details

  • Method Details

    • add

      public void add(double value)
      Adds a value to the set. Note: the value will be truncated to an integer.
      Specified by:
      add in class Metric
      Parameters:
      value - the value to add to the set.
    • getWeight

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

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