-
Notifications
You must be signed in to change notification settings - Fork 327
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
gzip compression #915
gzip compression #915
Conversation
@SimunKaracic, please take a look. |
The datadog part was a flip-flop on github actions, feel free to ignore that.
I'll check it out later, but we should probably have an additional test that checks that the gzip compression works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're almost over the finish line!
Please fix that one branch, add a test that validates the compression (you can just do what you did with curl in #911), and we're done here :)
...rs/kamon-prometheus/src/main/scala/kamon/prometheus/embeddedhttp/SunEmbeddedHttpServer.scala
Outdated
Show resolved
Hide resolved
...rs/kamon-prometheus/src/main/scala/kamon/prometheus/embeddedhttp/SunEmbeddedHttpServer.scala
Outdated
Show resolved
Hide resolved
...rs/kamon-prometheus/src/main/scala/kamon/prometheus/embeddedhttp/SunEmbeddedHttpServer.scala
Outdated
Show resolved
Hide resolved
...rs/kamon-prometheus/src/main/scala/kamon/prometheus/embeddedhttp/SunEmbeddedHttpServer.scala
Outdated
Show resolved
Hide resolved
@SimunKaracic, I made the changes you requested but would need some support with the test. |
It looks good! Next up, small tests:
How does that sound? |
The test cases sound good. I'm just not sure how tu run them. At the moment, the tests are using |
It should be possible to add headers to the URL, with something like this: Feel free to make another method |
Nice, quick response 🎉 This looks done, and it's definitely going in the next release! If there's any small changes to be made, I'll just push them directly, you can go enjoy your holidays :D |
It was not closing connections correctly on gzip requests
Following the discussion on #911.
This drafts an implementation for gzip compression using https://prometheus.github.io/client_java/src-html/io/prometheus/client/exporter/HTTPServer.html as inspiration.