Skip to content
Draft
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion pkg/logs/sender/grpc/batch_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const enableDeltaEncoding = true
// StatefulExtra holds state changes (non-Log datums) from a batch
// Used by inflight tracker to maintain snapshot state for stream rotation
type StatefulExtra struct {
StateChanges []*statefulpb.Datum
StateChanges []*statefulpb.Datum
// WireDatums are the datums in the encoded payload. Inflight uses them to
// find state references and rebuild replay batches with lazy snapshot state.
WireDatums []*statefulpb.Datum
PreCompressionBytes int
}

Expand Down Expand Up @@ -377,6 +380,7 @@ func (s *batchStrategy) sendMessagesWithDatums(messagesMetadata []*message.Messa
Encoding: s.compression.ContentEncoding(),
UnencodedSize: unencodedSize,
StatefulExtra: &StatefulExtra{
WireDatums: wireDatums,
PreCompressionBytes: preCompressionBytes,
},
}
Expand Down
Loading
Loading