diff --git a/api/all/src/main/java/io/opentelemetry/api/logs/LogRecordBuilder.java b/api/all/src/main/java/io/opentelemetry/api/logs/LogRecordBuilder.java index a8ac9d4d203..d26f170fe7c 100644 --- a/api/all/src/main/java/io/opentelemetry/api/logs/LogRecordBuilder.java +++ b/api/all/src/main/java/io/opentelemetry/api/logs/LogRecordBuilder.java @@ -31,16 +31,14 @@ public interface LogRecordBuilder { /** * Set the epoch {@code timestamp}, using the timestamp and unit. * - *

The {@code timestamp} is the time at which the log record occurred. If unset, it will be set - * to the current time when {@link #emit()} is called. + *

Note: If not set, the emitted log will not have a timestamp. */ LogRecordBuilder setTimestamp(long timestamp, TimeUnit unit); /** * Set the epoch {@code timestamp}, using the instant. * - *

The {@code timestamp} is the time at which the log record occurred. If unset, it will be set - * to the current time when {@link #emit()} is called. + *

Note: If not set, the emitted log will not have a timestamp. */ LogRecordBuilder setTimestamp(Instant instant);