Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug grpc call?

Tags:

grpc

I'm trying to figure out why my grpc call isn't working, but I can't figure out how to turn on debugging, so I can see the data that's being sent and received over the grpc connection.

How do you turn on debugging for grpc calls?

like image 635
jerjou Avatar asked May 09 '16 21:05

jerjou


People also ask

How do I debug a gRPC service?

grpcdebug is a command line interface focusing on simplifying the debugging process of gRPC applications. grpcdebug fetches the internal states of the gRPC library from the application via gRPC protocol and provide a human-friendly UX to browse them. Currently, it supports Channelz/Health Checking/CSDS (aka.

What is gRPC protocol?

gRPC is a technology for implementing RPC APIs that uses HTTP 2.0 as its underlying transport protocol. You might expect that gRPC and HTTP would be mutually exclusive, since they are based on opposite conceptual models.


1 Answers

You can set the GRPC_TRACE environment variable to all to have grpc dump a whole bunch of data about what the connection is doing:

export GRPC_TRACE=all 

edit from comment: apparently you also need to set:

export GRPC_VERBOSITY=DEBUG 
like image 85
jerjou Avatar answered Oct 12 '22 04:10

jerjou