Skip to content

Add gzip compression to http payloads above a certain size #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Indexu
Copy link

@Indexu Indexu commented Dec 17, 2021

Slightly modified version of the Sentry module gzip code to automatically compress payloads that are above a size threshold.

@Indexu Indexu requested review from judgeaxl and einarth December 17, 2021 10:26
Copy link

@judgeaxl judgeaxl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was resolved in Slack a long time ago, but the problem with this is that it requires the receiving service is aware of gzip compression and by default that is not the case. Thus, arbitrarily compressing payloads to any service is almost guaranteed to fail. Better would be to use this as a utility wrapper around services that are known to support gzip compression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants