-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add zstd decompression support to HTTPServerSettings #7927
Add zstd decompression support to HTTPServerSettings #7927
Conversation
0f4aea6
to
2020d10
Compare
2020d10
to
ba4ea24
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #7927 +/- ##
==========================================
- Coverage 91.05% 91.05% -0.01%
==========================================
Files 298 299 +1
Lines 14912 14944 +32
==========================================
+ Hits 13578 13607 +29
- Misses 1057 1059 +2
- Partials 277 278 +1
☔ View full report in Codecov by Sentry. |
ba4ea24
to
2e64b76
Compare
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.
Change looks good. Please add a second changelog entry file for the bugfix
2e64b76
to
a80df15
Compare
This adds ability to decompress zstd-compressed HTTP requests to all receivers that use HTTPServerSettings. Also added missing error handling for the case when an unsupported compression type was used in the request. Now it correctly returns 400 Bad Request. Also added a unit test to verify this case. Once this is merged I will submit a PR in contrib repo to add end-to-end tests that use zstd compression in the testbed.
a80df15
to
f901fda
Compare
Done. |
Duplicate of #7636? |
Please look at the other PR and incorporate that change as well. |
I looked at #7636 and it seems to do 2 additional things:
|
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.
Thanks for addressing my comments @tigrannajaryan
This provides the ability to add support for compression types which are not supported in core, to be supported by individual components. This change addresses an issue caused by #7927, which prevents receivers that use confighttp from adding support for their content-encoding types easily. They still can by implementing an error handler, but that seems messy. An alternative to this PR is to not return an error for an unsupported encoding type as was the case before #7927 If the approach is acceptable, I will add the unit tests and changelog Signed-off-by: Alex Boten <aboten@lightstep.com>
This adds ability to decompress zstd-compressed HTTP requests to all receivers that use HTTPServerSettings.
Also added missing error handling for the case when an unsupported compression type was used in the request. Now it correctly returns 400 Bad Request. Also added a unit test to verify this case.
Once this is merged I will submit a PR in contrib repo to add end-to-end tests that use zstd compression in the testbed.