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

[config/confighttp] Support zstd and snappy decompress #7636

Closed
wants to merge 4 commits into from
Closed

[config/confighttp] Support zstd and snappy decompress #7636

wants to merge 4 commits into from

Conversation

zdyj3170101136
Copy link

@zdyj3170101136 zdyj3170101136 commented May 8, 2023

fix #7632
Description:
bug: the otlphttp exporter zstd and snappy compression is not work.
how to fix: add zstd and snappy decompress reader.

@zdyj3170101136 zdyj3170101136 requested review from a team and bogdandrutu May 8, 2023 03:48
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 8, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: zdyj3170101136 / name: 杨杰 (0734bf6)

@atoulme
Copy link
Contributor

atoulme commented May 8, 2023

Please review and sign the CLA.

@atoulme
Copy link
Contributor

atoulme commented May 8, 2023

Please make sure to link to an issue. #7632 seems related to this issue.

@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Patch coverage: 86.36% and project coverage change: +0.03 🎉

Comparison is base (9f776d0) 91.23% compared to head (75b2b26) 91.26%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7636      +/-   ##
==========================================
+ Coverage   91.23%   91.26%   +0.03%     
==========================================
  Files         296      296              
  Lines       14473    14502      +29     
==========================================
+ Hits        13204    13235      +31     
+ Misses       1004     1002       -2     
  Partials      265      265              
Impacted Files Coverage Δ
config/confighttp/compression.go 83.87% <86.36%> (-0.25%) ⬇️

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

config/confighttp/compression.go Outdated Show resolved Hide resolved
config/confighttp/compression.go Outdated Show resolved Hide resolved
config/confighttp/compression.go Show resolved Hide resolved
config/confighttp/compression.go Show resolved Hide resolved
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 1, 2023
@@ -146,6 +147,7 @@ func (d *decompressor) wrap(h http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
newBody, err := newBodyReader(r)
if err != nil {
r.Body.Close()
d.errorHandler(w, r, err.Error(), http.StatusBadRequest)
return
}
Copy link
Member

Choose a reason for hiding this comment

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

Is there not a bug at line 155? Why closing the newBody?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please address this comment?

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 27, 2023
@atoulme
Copy link
Contributor

atoulme commented Jun 27, 2023

Please resolve conflicts.

@github-actions github-actions bot removed the Stale label Jun 28, 2023
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jul 13, 2023
@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[confighttp] Support snappy and zstd compression on the server side
4 participants