Skip to content

Commit 08678c4

Browse files
committed
polish: refining few classes.
1 parent c800322 commit 08678c4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/data/ExponentialHistogramPointData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
public interface ExponentialHistogramPointData extends PointData {
2828

2929
/**
30-
* Create a DoubleExponentialHistogramPointData.
30+
* Create a ExponentialHistogramPointData.
3131
*
32-
* @return a DoubleExponentialHistogramPointData.
32+
* @return a ExponentialHistogramPointData.
3333
*/
3434
@SuppressWarnings("TooManyParameters")
3535
static ExponentialHistogramPointData create(

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/data/GaugeData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
public interface GaugeData<T extends PointData> extends Data<T> {
1919

2020
/**
21-
* Creates an instance of {@link ImmutableGaugeData} with the given collection of points.
21+
* Creates an instance of {@link GaugeData} with the given collection of points.
2222
*
2323
* @param <T> the type of the point data
2424
* @param points the collection of points to be included in the gauge data
2525
* @return an instance of {@link ImmutableGaugeData} containing the provided points
2626
*/
27-
static <T extends PointData> ImmutableGaugeData<T> create(Collection<T> points) {
27+
static <T extends PointData> GaugeData<T> create(Collection<T> points) {
2828
return ImmutableGaugeData.create(points);
2929
}
3030
}

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/data/LongExemplarData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface LongExemplarData extends ExemplarData {
2727
* @param spanContext The associated span context.
2828
* @param value The value recorded.
2929
*/
30-
public static LongExemplarData create(
30+
static LongExemplarData create(
3131
Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, long value) {
3232
return ImmutableLongExemplarData.create(
3333
filteredAttributes, recordTimeNanos, spanContext, value);

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/data/LongPointData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface LongPointData extends PointData {
2727
* @param attributes The set of attributes associated with this point.
2828
* @param value The value that was sampled.
2929
*/
30-
public static LongPointData create(
30+
static LongPointData create(
3131
long startEpochNanos, long epochNanos, Attributes attributes, long value) {
3232
return ImmutableLongPointData.create(
3333
startEpochNanos, epochNanos, attributes, value, Collections.emptyList());

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/data/SummaryPointData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public interface SummaryPointData extends PointData {
2929
* @param sum The sum of measuremnts being sumarized.
3030
* @param percentileValues Calculations of percentile values from measurements.
3131
*/
32-
static ImmutableSummaryPointData create(
32+
static SummaryPointData create(
3333
long startEpochNanos,
3434
long epochNanos,
3535
Attributes attributes,

0 commit comments

Comments
 (0)