Skip to content

Commit

Permalink
stats: mark InPayload.Data and OutPayload.Data for deletion (experime…
Browse files Browse the repository at this point in the history
…ntal) (#7121)
  • Loading branch information
dfawley authored Apr 11, 2024
1 parent adf976b commit 664e852
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ func (*PickerUpdated) isRPCStats() {}
type InPayload struct {
// Client is true if this InPayload is from client side.
Client bool
// Payload is the payload with original type.
// Payload is the payload with original type. This may be modified after
// the call to HandleRPC which provides the InPayload returns and must be
// copied if needed later.
Payload any
// Data is the serialized message payload.
// Deprecated: Data will be removed in the next release.
Data []byte

// Length is the size of the uncompressed payload data. Does not include any
Expand Down Expand Up @@ -143,9 +146,12 @@ func (s *InTrailer) isRPCStats() {}
type OutPayload struct {
// Client is true if this OutPayload is from client side.
Client bool
// Payload is the payload with original type.
// Payload is the payload with original type. This may be modified after
// the call to HandleRPC which provides the OutPayload returns and must be
// copied if needed later.
Payload any
// Data is the serialized message payload.
// Deprecated: Data will be removed in the next release.
Data []byte
// Length is the size of the uncompressed payload data. Does not include any
// framing (gRPC or HTTP/2).
Expand Down

0 comments on commit 664e852

Please sign in to comment.