Class DistributionMetric

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

@Internal public final class DistributionMetric extends Metric
  • Constructor Details

    • DistributionMetric

      public DistributionMetric(@NotNull @NotNull String key, double value, @Nullable @Nullable MeasurementUnit unit, @Nullable @Nullable Map<String,String> tags)
  • Method Details

    • 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