-
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
fix: move compression.go into confighttp.go #4651
fix: move compression.go into confighttp.go #4651
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4651 +/- ##
=======================================
Coverage 90.74% 90.74%
=======================================
Files 179 180 +1
Lines 10652 10652
=======================================
Hits 9666 9666
Misses 765 765
Partials 221 221
Continue to review full report at Codecov.
|
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.
Not sure if it is ok to make configgrpc
depend on confighttp
. Can we maybe consider a configcompression
? Idea being other protocols (e.g. plain UDP) can use these constants as well.
Another option is confignet
? Personally I prefer configcompression
, any thoughts @tigrannajaryan @open-telemetry/collector-approvers ?
3bd0f2c
to
c2317d8
Compare
please fix lint |
Description:
This PR moved every code in
internal/middleware/compression.go
toconfig/confighttp.go
and tests as well.It also changed functions unexported except
CompressionType
.Note: Functions in
compression.go
was iniatially created forotlphttpexporter
, but it was changed to theconfighttp
in this PR(see #4441 and the code).Link to tracking Issue:
#4627