Skip to content

💡 Gzip logs with Content-Encoding  #2350

Open
@AurelienGasser

Description

@AurelienGasser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions