Environment variables
You can troubleshoot and change how C gRPC works by setting a few environment variables. There is a more complete reference of these here https://github.com/grpc/grpc/blob/master/doc/environment_variables.md but the most important are GRPC_TRACE
and GRPC_VERBOSITY
.
GRPC_TRACE
This is a comma-separated list of tracers that provide additional insight into how gRPC C core is processing requests, via debug-logs.
all
can additionally be used to turn all traces on. Individual traces can be disabled by prefixing them with -
.
refcount
will turn on all of the tracers for refcount debugging.
If list_tracers
is present, then all of the available tracers will be printed when the program starts up.
Example:
export GRPC_TRACE=all,-pending_tags
This means “put a trace on all available operations except pending_tags
.” There are quite a few traces you can turn on and off to debug what part of the request is failing, or just see more detail about what is happening...