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

JaegerRemoteSampler use upstream grpc implementation if ManagedChannel is set #5287

Merged

Conversation

jack-berg
Copy link
Member

Currently the JaegerRemoteSampler uses the upstream gRPC based implementation if io.grpc.stub.AbstractStub is detected on the classpath. If not, the default OkHttp based implementation is used.

This is the last gRPC component to behave like this. A while back, all the other gRPC components switched to only use the upstream gRPC based implementation only if ManagedChannel is set. Adopting this allows a lot of code to be removed / simplified.

If this changed is merged, users who wish to use the upstream gRPC component must:

  • Have the required dependencies on the classpath (already the case today)
  • Configure the ManagedChannel with any required settings since all other builder options are ignored (new requirement)
  • Call JaegerRemoteSamplerBuilder#setChannel (new requirement)

@jack-berg jack-berg requested a review from a team March 10, 2023 19:38
@codecov
Copy link

codecov bot commented Mar 16, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.10 🎉

Comparison is base (302f889) 90.97% compared to head (3258b61) 91.07%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5287      +/-   ##
============================================
+ Coverage     90.97%   91.07%   +0.10%     
+ Complexity     4907     4872      -35     
============================================
  Files           552      547       -5     
  Lines         14489    14368     -121     
  Branches       1372     1356      -16     
============================================
- Hits          13181    13086      -95     
+ Misses          907      892      -15     
+ Partials        401      390      -11     
Impacted Files Coverage Δ
...sion/trace/jaeger/sampler/JaegerRemoteSampler.java 85.36% <ø> (ø)
...ace/jaeger/sampler/JaegerRemoteSamplerBuilder.java 100.00% <100.00%> (+8.33%) ⬆️
...ension/trace/jaeger/sampler/OkHttpGrpcService.java 75.00% <100.00%> (-0.31%) ⬇️
...r/sampler/SamplingStrategyResponseUnMarshaler.java 72.47% <100.00%> (ø)
...sion/trace/jaeger/sampler/UpstreamGrpcService.java 88.46% <100.00%> (ø)

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Copy link
Contributor

@jkwatson jkwatson left a comment

Choose a reason for hiding this comment

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

Seems fine to me, but I'm not a user of this sampler

@jack-berg jack-berg merged commit fa36775 into open-telemetry:main Mar 24, 2023
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