How to attach data like request id to each GRPC request?

978 views
Skip to first unread message

ran...@addepar.com

unread,
Mar 17, 2017, 7:04:31 PM3/17/17
to grpc.io
Sometimes I need to log request id for cross stack debugging. 
What is the standard way to do that?

Best
Ran

Carl Mastrangelo

unread,
Mar 20, 2017, 12:31:24 PM3/20/17
to grpc.io
You can use Metadata to add additional header values to requests and responses.  This can be done automatically with interceptors for all RPCs.  What language are you using?

Ran Bi

unread,
Mar 20, 2017, 2:12:39 PM3/20/17
to Carl Mastrangelo, grpc.io
Thanks for explaining!
I use java.

--
You received this message because you are subscribed to a topic in the Google Groups "grpc.io" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grpc-io/aauZ5VVVMQ0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1c1fd528-dc6c-445b-91de-f89d0ec8d9ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages