Skip to content
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

Datadog 'Deflate' compression #929

Merged
merged 5 commits into from
Feb 1, 2021

Conversation

arjun-1
Copy link
Contributor

@arjun-1 arjun-1 commented Jan 27, 2021

This PR introduces 'Deflate' compression when POSTing to the Datadog API. The Datadog API is known to have a payload limit (see https://docs.datadoghq.com/api/latest/metrics/#submit-metrics). By using compression, users can POST bodies which are larger in size than this limit.

Compression has been made optional, under the datadog.api.compression key.

We ran into the Datadog limit when posting metrics for one of our services. This was resolved by using this 'Deflate' compression functionality. Note that the Datadog API doesn't support gzip compression, as we attempted this compression method before.

@SimunKaracic
Copy link
Contributor

SimunKaracic commented Feb 1, 2021

Great PR, merge-ing as is!

Thanks for the contribution 🎉

@SimunKaracic SimunKaracic merged commit dd8713f into kamon-io:master Feb 1, 2021
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