We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 535c3f0 commit 9ce1f5aCopy full SHA for 9ce1f5a
api/logstream/logstream.go
@@ -121,6 +121,7 @@ func (ls *LogStream) Close() error {
121
// See the counterpart in apiserver/logstream.go.
122
func recordFromAPI(apiRec params.LogStreamRecord, controllerUUID string) (logfwd.Record, error) {
123
rec := logfwd.Record{
124
+ ID: apiRec.ID,
125
Timestamp: apiRec.Timestamp,
126
Message: apiRec.Message,
127
}
logfwd/record.go
@@ -15,6 +15,10 @@ import (
15
16
// Record holds all the information for a single log record.
17
type Record struct {
18
+ // ID identifies the record and its position in a sequence
19
+ // of records.
20
+ ID int64
21
+
22
// Origin describes what created the record.
23
Origin Origin
24
0 commit comments