Skip to content

Commit 70ae8ff

Browse files
wu-shengCopilot
andauthored
Update src/main/java/org/apache/skywalking/banyandb/v1/client/AbstractWrite.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b54dd81 commit 70ae8ff

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/main/java/org/apache/skywalking/banyandb/v1/client/AbstractWrite.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131

3232
public abstract class AbstractWrite<P extends com.google.protobuf.GeneratedMessageV3> {
3333
/**
34-
* Timestamp represents the time of current stream
35-
* in the timeunit of milliseconds.
36-
*
37-
* Measure and stream require timestamp.
38-
* Trace doesn't require extra timestamp.
34+
* Timestamp represents the time of the current data point, in milliseconds.
35+
* <p>
36+
* <b>When to set:</b>
37+
* <ul>
38+
* <li><b>Stream and Measure writes:</b> This field <i>must</i> be set to indicate the event time.</li>
39+
* <li><b>Trace writes:</b> This field is <i>not needed</i> and should be left unset; trace data does not require an explicit timestamp here.</li>
40+
* </ul>
3941
*/
4042
@Getter
4143
protected Optional<Long> timestamp;

0 commit comments

Comments
 (0)