diff --git a/sdk/src/main/java/io/opentelemetry/sdk/metrics/view/Aggregations.java b/sdk/src/main/java/io/opentelemetry/sdk/metrics/view/Aggregations.java index 7d4d0549a9d..73530d108f2 100644 --- a/sdk/src/main/java/io/opentelemetry/sdk/metrics/view/Aggregations.java +++ b/sdk/src/main/java/io/opentelemetry/sdk/metrics/view/Aggregations.java @@ -28,8 +28,9 @@ public class Aggregations { /** - * Aggregation that calculates sum of recorded measurements. + * Returns an {@code Aggregation} that calculates sum of recorded measurements. * + * @return an {@code Aggregation} that calculates sum of recorded measurements. * @since 0.1.0 */ public static Aggregation sum() { @@ -37,9 +38,11 @@ public static Aggregation sum() { } /** - * Aggregation that calculates count of recorded measurements (the number of recorded - * measurements). + * Returns an {@code Aggregation} that calculates count of recorded measurements (the number of + * recorded measurements). * + * @return an {@code Aggregation} that calculates count of recorded measurements (the number of + * recorded * measurements). * @since 0.1.0 */ public static Aggregation count() { @@ -47,13 +50,13 @@ public static Aggregation count() { } /** - * Aggregation that calculates distribution stats on recorded measurements. Distribution includes - * sum, count, histogram, and sum of squared deviations. + * Returns an {@code Aggregation} that calculates distribution stats on recorded measurements. + * Distribution includes sum, count, histogram, and sum of squared deviations. * *
The boundaries for the buckets in the underlying histogram needs to be sorted. * * @param bucketBoundaries bucket boundaries to use for distribution. - * @return a new {@code Distribution}. + * @return an {@code Aggregation} that calculates distribution stats on recorded measurements. * @since 0.1.0 */ public static Aggregation distributionWithExplicitBounds(Double... bucketBoundaries) { @@ -61,8 +64,9 @@ public static Aggregation distributionWithExplicitBounds(Double... bucketBoundar } /** - * Aggregation that calculates the last value of all recorded measurements. + * Returns an {@code Aggregation} that calculates the last value of all recorded measurements. * + * @return an {@code Aggregation} that calculates the last value of all recorded measurements. * @since 0.1.0 */ public static Aggregation lastValue() {