[#12493] gzip compression for application/json#12494
Merged
emeroad merged 1 commit intopinpoint-apm:masterfrom May 27, 2025
Merged
[#12493] gzip compression for application/json#12494emeroad merged 1 commit intopinpoint-apm:masterfrom
emeroad merged 1 commit intopinpoint-apm:masterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces gzip compression for JSON responses by enabling compression in the server configuration for application/json MIME types.
- Enabled compression in the application.yml configuration
- Set the minimum response size for compression to 2KB
Comments suppressed due to low confidence (1)
web/src/main/resources/application.yml:22
- Verify that the unit format '2KB' is accepted by the underlying server configuration; if the server expects a numeric value (bytes), consider using the appropriate unit conversion.
min-response-size: 2KB
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #12494 +/- ##
============================================
- Coverage 33.60% 33.59% -0.01%
Complexity 10742 10742
============================================
Files 3942 3942
Lines 91812 91812
Branches 9557 9557
============================================
- Hits 30851 30848 -3
- Misses 58322 58325 +3
Partials 2639 2639 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a configuration change to enable HTTP response compression in the application. The change is aimed at improving performance by reducing the size of HTTP responses for supported MIME types.
Configuration changes:
web/src/main/resources/application.yml: Added a newcompressionsection underserverto enable HTTP response compression. It specifies supported MIME types (application/json) and sets a minimum response size of 2KB for compression to be applied.