-
Notifications
You must be signed in to change notification settings - Fork 5.3k
thrift_proxy: Fix success/error thrift metrics on passthrough #18415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
722bdfd
46bd4d8
379aff9
8349099
89ac760
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,6 +73,16 @@ class Protocol { | |
| */ | ||
| virtual bool readMessageEnd(Buffer::Instance& buffer) PURE; | ||
|
|
||
| /** | ||
| * Peeks the start of a Thrift protocol reply payload in the buffer and updates the reply | ||
| * type parameter with the reply type of the payload. | ||
| * @param buffer the buffer to peek from | ||
fishcakez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| * @param reply_type ReplyType to set the payload's reply type to success or error | ||
| * @return true if reply type was successfully read, false if more data is required | ||
| * @throw EnvoyException if the data is not a valid payload | ||
| */ | ||
| virtual bool peekReplyPayload(Buffer::Instance& buffer, ReplyType& reply_type) PURE; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could this be body const?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it could be but that opens a can of worms on the peek buffer helpers we have. Ill look into fixing that in a later PR i think unless you want to solve that here. |
||
|
|
||
| /** | ||
| * Reads the start of a Thrift struct from the buffer and updates the name parameter with the | ||
| * value from the struct header. If successful, the struct header is removed from the buffer. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.