Package io.sentry.metrics
Class SetMetric
java.lang.Object
io.sentry.metrics.Metric
io.sentry.metrics.SetMetric
Sets track a set of values on which you can perform aggregations such as count_unique.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SetMetric
public SetMetric(@NotNull @NotNull String key, @Nullable @Nullable MeasurementUnit unit, @Nullable @Nullable Map<String, String> tags)
-
-
Method Details
-
add
public void add(double value) Adds a value to the set. Note: the value will be truncated to an integer. -
getWeight
public int getWeight() -
serialize
-