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

interceptor function #131

Open
booksongs opened this issue Jan 23, 2024 · 2 comments
Open

interceptor function #131

booksongs opened this issue Jan 23, 2024 · 2 comments

Comments

@booksongs
Copy link

I want to implement the interceptor function in Thrift, for example, adding a link traceId. How should this be implemented? Can you provide some guidance?

@electrum
Copy link
Member

Can you explain more about what you're trying to do? Where would this value be added?

@booksongs
Copy link
Author

Can you explain more about what you're trying to do? Where would this value be added?

I want to implement a trace capability, where the trace ID can be passed down the RPC chain and printed in the log. I've noticed other RPC frameworks have this kind of feature, usually implemented based on interceptors. So, how should we implement this functionality in our drift?

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

2 participants