Open
Description
HTTP payloads sent to e.g. /api/v2/logs
often contain redundant information. For instance, when sending multiple lines of logs, each log line includes near-identical metadata.
Adding an option to gzip the HTTP request body would reduce bandwidth usage on the client side. This would be useful in a number of scenarios, in particular when sending browser logs from mobile clients.
To be clear, I propose to add a new configuration option to:
- Add the following HTTP request header
Content-Encoding: gzip
- gzip the HTTP request body