How to add a ClientStreamTracer to a managed channel ?

18 views
Skip to first unread message

Paul Antinori

unread,
Sep 29, 2022, 4:09:22 PM9/29/22
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
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.
Reply all
Reply to author
Forward
0 new messages