Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,22 @@ public interface LogRecordBuilder {
/**
* Set the epoch {@code timestamp}, using the timestamp and unit.
*
* <p>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.
* <p>The {@code timestamp} is the time at which the log record occurred. If unset, the timestamp
* will remain unset.
*
* <p>The observed timestamp will be set to the current time when {@link #emit()} is called if it
* is not explicitly set.
*/
LogRecordBuilder setTimestamp(long timestamp, TimeUnit unit);

/**
* Set the epoch {@code timestamp}, using the instant.
* Set the epoch {@code timestamp}, using the timestamp and unit.
*
* <p>The {@code timestamp} is the time at which the log record occurred. If unset, the timestamp
* will remain unset.
*
* <p>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.
* <p>The observed timestamp will be set to the current time when {@link #emit()} is called if it
* is not explicitly set.
*/
LogRecordBuilder setTimestamp(Instant instant);

Expand Down
Loading