designcourse icon indicating copy to clipboard operation
designcourse copied to clipboard

💡 Gzip logs with Content-Encoding

Open AurelienGasser opened this issue 2 years ago • 1 comments
trafficstars

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:

  1. Add the following HTTP request header
Content-Encoding: gzip
  1. gzip the HTTP request body

AurelienGasser avatar Jul 22 '23 03:07 AurelienGasser

Thanks for the feedback. We are currently working on it! It's a lot harder than it looks, but it's coming.

BenoitZugmeyer avatar Jul 24 '23 07:07 BenoitZugmeyer