fullstorydev / grpcurl

Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers
MIT License
10.36k stars 497 forks source link

Support displaying raw response size before decompression #342

Open gamer2810 opened 1 year ago

gamer2810 commented 1 year ago

Use-case: Checking if server's compression is working.

Currently with the very verbose (-vv) output, I can see the estimated data size of the response: image

However, that is the message size after decompression. The logs on the server said only 2340 bytes has been sent: identity

When I turned off compression on the server, the message size is indeed around ~17KB: identity-real

To check compression, I currently need to turn on debug logging on the server which creates lots of logs and is impossible to do on production servers. Could you guys help adding output for raw response message size and the grpc-encoding header?