Is there any way to determine when an RPC ends using Go's StreamClientInterceptor?
19 views
Skip to first unread message
ryan...@gmail.com
unread,
Mar 27, 2017, 1:31:42 PM3/27/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
I'm working on instrumenting Go's streaming RPCs for OpenTracing. Is there a good way to figure out when an RPC ends on the client-side so that a span can be accurately measured? (I also asked this on StackOverflow: http://stackoverflow.com/q/42988396).
I've been looking into a returning a decorated ClientStream that closes the span when it detects an error or io.EOF, but this doesn't seem like it would work in all cases if the client-side doesn't call Recv until it returns EOF (for example: http://stackoverflow.com/q/42915337).