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

Pass grpc headers through pubsub and service invocation #175

Open
ruokun-niu opened this issue May 14, 2024 · 0 comments
Open

Pass grpc headers through pubsub and service invocation #175

ruokun-niu opened this issue May 14, 2024 · 0 comments

Comments

@ruokun-niu
Copy link
Contributor

Question

Hi! I have a quick question regarding how to use the Dapr Rust SDK to handle context tracing.

From my understanding, the trace context is passed through grpc-trace-bin header, although I am unsure how this can be achieved in the Rust SDK.

For pubsub, the pubsub example indicates the ability to update the metadata. Let us say that I have a grpc-trace-bin value that I want to pass to my subscriber for tracing purposes, should I configure the metadata here?

As for service invocation, the only way that I can think of is by following the grpc-proxying example, and pass in the grpc-trace-bin as a metadata to the Request. Is this the proper and only way to achieve this feature?
Thanks in advance.

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

No branches or pull requests

1 participant