Skip to content

[#12493] gzip compression for application/json#12494

Merged
emeroad merged 1 commit intopinpoint-apm:masterfrom
emeroad:#12493_gzip
May 27, 2025
Merged

[#12493] gzip compression for application/json#12494
emeroad merged 1 commit intopinpoint-apm:masterfrom
emeroad:#12493_gzip

Conversation

@emeroad
Copy link
Copy Markdown
Member

@emeroad emeroad commented May 27, 2025

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 new compression section under server to enable HTTP response compression. It specifies supported MIME types (application/json) and sets a minimum response size of 2KB for compression to be applied.

@emeroad emeroad added this to the 3.1.0 milestone May 27, 2025
@emeroad emeroad linked an issue May 27, 2025 that may be closed by this pull request
@emeroad emeroad requested a review from Copilot May 27, 2025 08:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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
Copy link
Copy Markdown

codecov bot commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.59%. Comparing base (4c90b3e) to head (7fc36ec).
Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@emeroad emeroad merged commit 94a960a into pinpoint-apm:master May 27, 2025
5 checks passed
@emeroad emeroad deleted the #12493_gzip branch May 27, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gzip compression for application/json

2 participants