The balancer interface Get
method has a put
function, as one of its returns, that's supposed to be called after the grpc call:
// The function returns put which is called once the rpc has completed or failed.
// put can collect and report RPC stats to a remote load balancer.
https://github.com/grpc/grpc-go/blob/master/balancer.go#L74
How do I get the status of the gRPC call (success/failure), and stats?
The use of interceptors is an alternative, but would like to use this method if it is possible to get the status/stats.