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

Fix tracing round-tripper #769

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Fix tracing round-tripper #769

merged 1 commit into from
Feb 2, 2024

Conversation

jhump
Copy link
Member

@jhump jhump commented Feb 2, 2024

Oops. Client middleware can't return a copy of the response because then caller won't get any trailers. They get set on the original response object, when the underlying body reaches EOF. So this broke gRPC protocol (but worked with Connect and gRPC-Web).

…ilers, which will only be stored on the original response when body reaches EOF
@jhump jhump requested a review from smaye81 February 2, 2024 15:38
@jhump jhump merged commit 5669f6d into main Feb 2, 2024
5 checks passed
@jhump jhump deleted the jh/fix-tracing-round-tripper branch February 2, 2024 15:59
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