On Thu, Jul 22, 2021 at 9:04 AM Amit Saha <[email protected]> wrote: > > On Thu, Jul 22, 2021 at 8:58 AM Amit Saha <[email protected]> wrote: > > > > When using the Go grpc library, in the client, when WithBlock(), I can > > use GO_GRPC_LOG_xx variables to see the client connection logs. > > However in my application code, the real underlying reason for which > > the connection attempt is being retried is not visible. Is that a > > reasonable expectation to have - i can create a RFE for that if so. > > Just after posting this, i realized that i can use the > grpc.FailOnNonTempDialError(true), DialOption to get the error and > since it's a non-temporary error this is the case where i would really > care about the error. > > I also found > https://github.com/grpc/grpc-go/issues/2031#issuecomment-387545938 > which is relevant.
And: https://pkg.go.dev/google.golang.org/grpc#WithReturnConnectionError - exactly what i am looking for i think. -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CANODV3m1z_3oR0jNwAyn7TK1NMJAMvrBxVb%2BxZJ8YRMOdiU5pg%40mail.gmail.com.
