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 Compressor SPI support to OtlpGrpc{Signal}Exporters #6103

Merged
merged 5 commits into from
Jan 31, 2024

Conversation

jack-berg
Copy link
Member

Followup to #5990.

Resolves #5196.

@jack-berg jack-berg requested a review from a team January 2, 2024 22:09
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (8d1cad2) 90.98% compared to head (bd7a465) 91.04%.
Report is 8 commits behind head on main.

Files Patch % Lines
...porter/sender/okhttp/internal/GrpcRequestBody.java 28.57% 3 Missing and 2 partials ⚠️
...orter/sender/okhttp/internal/OkHttpGrpcSender.java 50.00% 1 Missing and 1 partial ⚠️
...edchannel/internal/UpstreamGrpcSenderProvider.java 88.88% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6103      +/-   ##
============================================
+ Coverage     90.98%   91.04%   +0.05%     
+ Complexity     5672     5669       -3     
============================================
  Files           620      620              
  Lines         16535    16553      +18     
  Branches       1682     1689       +7     
============================================
+ Hits          15045    15071      +26     
+ Misses         1013      994      -19     
- Partials        477      488      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jack-berg
Copy link
Member Author

@open-telemetry/java-approvers PTAL when you can. This shouldn't be controversial.

@@ -703,6 +720,8 @@ void validConfig() {
.doesNotThrowAnyException();

assertThatCode(() -> exporterBuilder().setCompression("gzip")).doesNotThrowAnyException();
// SPI compressor available for this test but not packaged with OTLP exporter
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏻 good check

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

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

Nice! This is also related to an end-user request in android to be able to disable compression when behind an API gateway. #739, and I mentioned this ability in a follow-up here.

I did have 2 small comments, but looks good to me.

Seems compatible to me at least, and....flexible/extensible! 🤘🏻

@jack-berg jack-berg merged commit 8684882 into open-telemetry:main Jan 31, 2024
18 checks passed
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.

Support zstd compression codec for open-telemetry/opentelemetry-java
2 participants