gRPC C++: Limited options for displaying headers in logs, GRPC_TRACE=api is too verbose #15063
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: cleanup
An internal cleanup or hygiene concern.
The GRPC_TRACE environment variable is used to enable detailed logging for various gRPC components. While GRPC_TRACE=api successfully displays request and response headers in the output, using other combinations, such as GRPC_TRACE=http, does not show these headers. GRPC_TRACE=api, while displaying headers, results in an extremely verbose output (thousands of lines) regardless of the GRPC_VERBOSITY level (INFO or DEBUG).
Proposed solution:
Implement a lightweight interceptor mechanism in the gRPC C++ SDK that customers can utilize. This interceptor would allow users to capture and view request and response headers without enabling overly verbose logging.
The text was updated successfully, but these errors were encountered: