How to add a ClientStreamTracer to a managed channel ?
32 views
Skip to first unread message
Paul Antinori
unread,
Sep 29, 2022, 4:09:22 PM9/29/22
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 am trying to see how the ClientStreamTracer is add to a manager channel, with the ManagedChannelBuilder API, but am missing it. Can someone give a pointer on how this can be done ?
sanjay...@google.com
unread,
Sep 29, 2022, 6:07:55 PM9/29/22
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
The ClientStreamTracer is per stream so cannot be added to a managed channel. You have to use a ClientStreamTracer.Factory that returns a new ClientStreamTracer and using a client-interceptor inject the factory into a call using callOptions.withStreamTracerFactory.