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

Add "compression" option to otlphttp exporter #2502

Conversation

tigrannajaryan
Copy link
Member

@tigrannajaryan tigrannajaryan commented Feb 17, 2021

The default value of "compression" option is empty and results in no compression,
which is the same as the old behavior. You can also specify "compression: gzip"
which will result in gzip encoding of outgoing http requests.

@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/otlphttpexporterzip branch 2 times, most recently from 9795f46 to c77bb28 Compare February 17, 2021 01:53
internal/middleware/compression.go Outdated Show resolved Hide resolved
internal/middleware/compression.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Feb 17, 2021

Codecov Report

Merging #2502 (1f78c79) into main (846b971) will decrease coverage by 0.02%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2502      +/-   ##
==========================================
- Coverage   91.76%   91.73%   -0.03%     
==========================================
  Files         266      266              
  Lines       15111    15136      +25     
==========================================
+ Hits        13866    13885      +19     
- Misses        866      869       +3     
- Partials      379      382       +3     
Impacted Files Coverage Δ
internal/middleware/compression.go 80.76% <50.00%> (-19.24%) ⬇️
exporter/otlphttpexporter/otlp.go 83.52% <100.00%> (+1.02%) ⬆️
testutil/testutil.go 81.60% <0.00%> (ø)
exporter/otlpexporter/otlp.go 74.35% <0.00%> (+2.56%) ⬆️
exporter/exporterhelper/metricshelper.go 100.00% <0.00%> (+5.40%) ⬆️

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 846b971...1f78c79. Read the comment docs.

@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/otlphttpexporterzip branch from c77bb28 to c7e7137 Compare February 17, 2021 02:13
@tigrannajaryan
Copy link
Member Author

Don't merge yet, I need to check all contrib exporters to make sure they are not affected.

internal/middleware/compression.go Outdated Show resolved Hide resolved
internal/middleware/compression.go Outdated Show resolved Hide resolved
@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/otlphttpexporterzip branch from c7e7137 to 5764757 Compare February 17, 2021 02:51
@tigrannajaryan tigrannajaryan changed the title Add gzip compression and "disable_compression" to HTTP client exporters Add "compression" option to otlphttp exporter Feb 17, 2021
@bogdandrutu bogdandrutu self-requested a review February 17, 2021 02:53
@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/otlphttpexporterzip branch from 5764757 to bf47d96 Compare February 17, 2021 02:54
@tigrannajaryan
Copy link
Member Author

OK, changed the implementation to make "compression" option opt-in for exporters. It was dangerous to enable for all http exporters since some exporter already do their own compression. See updated PR description.

@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/otlphttpexporterzip branch from bf47d96 to 965f750 Compare February 17, 2021 03:02
@tigrannajaryan tigrannajaryan marked this pull request as ready for review February 17, 2021 03:04
@tigrannajaryan tigrannajaryan requested a review from a team February 17, 2021 03:04
@tigrannajaryan
Copy link
Member Author

contrib_tests failure is expected. Will need to fix after this is merged.

@tigrannajaryan
Copy link
Member Author

Now ready for review.

@jpkrohling jpkrohling self-requested a review February 17, 2021 08:37
@tigrannajaryan tigrannajaryan force-pushed the feature/tigran/otlphttpexporterzip branch 2 times, most recently from 22cbd82 to 982a57e Compare February 17, 2021 14:02
This was referenced Mar 15, 2021
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
…y#2502)

Bumps [go.etcd.io/etcd/client/v2](https://github.com/etcd-io/etcd) from 2.305.6 to 2.305.7.
- [Release notes](https://github.com/etcd-io/etcd/releases)
- [Changelog](https://github.com/etcd-io/etcd/blob/main/Dockerfile-release.amd64)
- [Commits](etcd-io/etcd@client/v2.305.6...client/v2.305.7)

---
updated-dependencies:
- dependency-name: go.etcd.io/etcd/client/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
…etry#2502)

* Upgrade compiler in CI

* Backport abseil fix for clang-15.

* More backport for clang-15

* Missed backport bits.

* Fixed a new warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants