diff --git a/api/all/src/main/java/io/opentelemetry/api/metrics/DoubleHistogramBuilder.java b/api/all/src/main/java/io/opentelemetry/api/metrics/DoubleHistogramBuilder.java index bc93b3c9e3f..67f6ae050fa 100644 --- a/api/all/src/main/java/io/opentelemetry/api/metrics/DoubleHistogramBuilder.java +++ b/api/all/src/main/java/io/opentelemetry/api/metrics/DoubleHistogramBuilder.java @@ -48,7 +48,7 @@ default DoubleHistogramBuilder setExplicitBucketBoundariesAdvice(List bu return this; } - /** Sets the Counter for recording {@code long} values. */ + /** Sets the Histogram for recording {@code long} values. */ LongHistogramBuilder ofLongs(); /** diff --git a/api/all/src/main/java/io/opentelemetry/api/metrics/LongUpDownCounterBuilder.java b/api/all/src/main/java/io/opentelemetry/api/metrics/LongUpDownCounterBuilder.java index d59ff9789ac..33d514422bc 100644 --- a/api/all/src/main/java/io/opentelemetry/api/metrics/LongUpDownCounterBuilder.java +++ b/api/all/src/main/java/io/opentelemetry/api/metrics/LongUpDownCounterBuilder.java @@ -33,7 +33,7 @@ public interface LongUpDownCounterBuilder { */ LongUpDownCounterBuilder setUnit(String unit); - /** Sets the Counter for recording {@code double} values. */ + /** Sets the UpDownCounter for recording {@code double} values. */ DoubleUpDownCounterBuilder ofDoubles(); /** diff --git a/api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java b/api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java index 3b9d0337557..85074130b6a 100644 --- a/api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java +++ b/api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java @@ -71,7 +71,7 @@ static TraceFlags fromByte(byte traceFlagsByte) { * Returns {@code true} if the sampling bit is on for this {@link TraceFlags}, otherwise {@code * false}. * - * @return {@code true} if the sampling bit is on for this {@link TraceFlags}, otherwise {@code * + * @return {@code true} if the sampling bit is on for this {@link TraceFlags}, otherwise {@code * false}. */ boolean isSampled(); @@ -92,7 +92,7 @@ default boolean isTraceIdRandom() { /** * Returns the lowercase hex (base16) representation of this {@link TraceFlags}. * - * @return the byte representation of the {@link TraceFlags}. + * @return the lowercase hex (base16) representation of the {@link TraceFlags}. */ String asHex(); diff --git a/api/all/src/main/java/io/opentelemetry/api/trace/TraceId.java b/api/all/src/main/java/io/opentelemetry/api/trace/TraceId.java index 3ee77848d75..a14f0636a39 100644 --- a/api/all/src/main/java/io/opentelemetry/api/trace/TraceId.java +++ b/api/all/src/main/java/io/opentelemetry/api/trace/TraceId.java @@ -70,7 +70,7 @@ public static boolean isValid(CharSequence traceId) { * given bytes representation, or {@link #getInvalid()} if input is {@code null} or the given byte * array is too short. * - *

It converts the first 26 bytes of the given byte array. + *

It converts the first 16 bytes of the given byte array. * * @param traceIdBytes the bytes (16-byte array) representation of the {@code TraceId}. * @return the lowercase hex (base16) representation of the {@code TraceId}. @@ -86,7 +86,7 @@ public static String fromBytes(byte[] traceIdBytes) { } /** - * Returns the bytes (16-byte array) representation of the {@code TraceId} converted from the + * Returns the lowercase hex (base16) representation of the {@code TraceId} converted from the * given two {@code long} values representing the lower and higher parts. * *

There is no restriction on the specified values, other than the already established validity