Skip to content
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

Add rpc.status to client response context for annotated thrift exceptions #934

Open
wants to merge 3 commits into
base: v1.4.1-hotfix-maintenance
Choose a base branch
from

Conversation

deepanshumehndiratta
Copy link

This change adds the response status to the returned context from tchannel clients by inspecting system errors, as well as annotated applications errors (thrift exceptions)

codegen/method.go Outdated Show resolved Hide resolved
codegen/templates/tchannel_client.tmpl Outdated Show resolved Hide resolved
@deepanshumehndiratta deepanshumehndiratta force-pushed the rpc_annotation_thrift branch 2 times, most recently from 1b1f442 to 5509687 Compare May 3, 2024 10:12
@hbhoyar-uber
Copy link
Contributor

Can you also add the test which shows generated code setting up this annotation

@deepanshumehndiratta
Copy link
Author

Can you also add the test which shows generated code setting up this annotation

Added a unit test to cover this

Copy link
Contributor

@hbhoyar-uber hbhoyar-uber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks like you refactored unnecessary code as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants