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

Support Snappy and Zstd for confighttp.go #4441

Merged
merged 28 commits into from
Dec 10, 2021

Conversation

hyunuk
Copy link
Contributor

@hyunuk hyunuk commented Nov 16, 2021

Description:
This PR provides snappy and zstd as additional compression methods for confighttp, which are the same libraries as configgrpc uses.

The compression field in exporter/otlphttpexporter/config.go has been removed and integrated into confighttp.HTTPClientSettings.

Link to tracking Issue:
#2766

@hyunuk hyunuk closed this Nov 16, 2021
@hyunuk hyunuk reopened this Nov 19, 2021
@codecov
Copy link

codecov bot commented Nov 19, 2021

Codecov Report

Merging #4441 (dabd47d) into main (265a06a) will increase coverage by 0.00%.
The diff coverage is 88.37%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4441   +/-   ##
=======================================
  Coverage   90.52%   90.53%           
=======================================
  Files         180      180           
  Lines       10474    10503   +29     
=======================================
+ Hits         9482     9509   +27     
- Misses        776      777    +1     
- Partials      216      217    +1     
Impacted Files Coverage Δ
exporter/otlphttpexporter/config.go 100.00% <ø> (ø)
exporter/otlphttpexporter/otlp.go 82.05% <ø> (-0.88%) ⬇️
internal/middleware/compression.go 80.00% <87.50%> (+2.89%) ⬆️
config/confighttp/confighttp.go 100.00% <100.00%> (ø)
processor/batchprocessor/batch_processor.go 91.52% <0.00%> (+1.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 265a06a...dabd47d. Read the comment docs.

@hyunuk hyunuk marked this pull request as ready for review November 19, 2021 23:41
@hyunuk hyunuk requested review from a team and owais November 19, 2021 23:41
@alolita
Copy link
Member

alolita commented Nov 22, 2021

@open-telemetry/collector-approvers please review.

config/confighttp/confighttp.go Outdated Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
internal/middleware/compression.go Outdated Show resolved Hide resolved
internal/middleware/compression.go Outdated Show resolved Hide resolved
internal/middleware/compression.go Outdated Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
exporter/otlphttpexporter/README.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
config/confighttp/confighttp_test.go Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
internal/middleware/compression.go Outdated Show resolved Hide resolved
Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

This is looking great. I think @Aneurysm9's questions are the last remaining points.

config/confighttp/README.md Outdated Show resolved Hide resolved
config/confighttp/README.md Outdated Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
internal/middleware/compression.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
config/confighttp/confighttp.go Outdated Show resolved Hide resolved
Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

LGTM

@Aneurysm9 Aneurysm9 added the ready-to-merge Code review completed; ready to merge by maintainers label Dec 2, 2021
config/confighttp/README.md Outdated Show resolved Hide resolved
internal/middleware/compression.go Outdated Show resolved Hide resolved
config/confighttp/README.md Outdated Show resolved Hide resolved
Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

Missing followup from SIG discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants