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 server interceptor not seeing the request message in server streaming rpcs #1429

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

srikrsna-buf
Copy link
Member

Closes #1428. Because of the conversion between handler types interceptor, we missed using the message that we get from the interceptor chain. I also added similar assertions for other rpc types.

Signed-off-by: Sri Krishna Paritala <[email protected]>
@@ -106,7 +106,7 @@ export function transformInvokeImplementation<
const output = normalizeIterable(
spec.method.output,
spec.impl(
await ensureSingle(input, "server-streaming"),
await ensureSingle(req.message, "server-streaming"),
Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, but we should double check with connectrpc/examples-es#2452 before cutting a release.

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.

Otel looses Trace Context while streaming
2 participants