Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Make GuaranteedThroughputSampler public #457

Merged
merged 1 commit into from
Jul 6, 2018

Conversation

quaff
Copy link
Contributor

@quaff quaff commented Jun 19, 2018

No description provided.

@codecov
Copy link

codecov bot commented Jun 19, 2018

Codecov Report

Merging #457 into master will increase coverage by 0.1%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master     #457     +/-   ##
===========================================
+ Coverage     88.14%   88.25%   +0.1%     
+ Complexity      490      489      -1     
===========================================
  Files            62       62             
  Lines          1848     1847      -1     
  Branches        241      241             
===========================================
+ Hits           1629     1630      +1     
+ Misses          142      139      -3     
- Partials         77       78      +1
Impacted Files Coverage Δ Complexity Δ
...internal/samplers/GuaranteedThroughputSampler.java 92.3% <100%> (+3.41%) 7 <1> (ø) ⬇️
...ing/internal/samplers/RemoteControlledSampler.java 89.53% <0%> (-1.17%) 17% <0%> (-1%)
...egertracing/internal/reporters/RemoteReporter.java 85.71% <0%> (+2.38%) 7% <0%> (ø) ⬇️

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 527b1ce...e08e616. Read the comment docs.

@jpkrohling
Copy link
Collaborator

@quaff, do you have a reason to require this to be public? Also, looks like your commit is missing the DCO sign-off.

@quaff quaff force-pushed the patch-1 branch 2 times, most recently from 2dfbba9 to 4901f47 Compare June 29, 2018 00:13
@quaff
Copy link
Contributor Author

quaff commented Jun 29, 2018

@jpkrohling I have updated this commit, I prefer this Sampler for my application, any concern to make it package access level?

jpkrohling
jpkrohling previously approved these changes Jun 29, 2018
Copy link
Collaborator

@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.

I really don't have any concerns, but we are about to discuss whether those samplers should be part of the public API or not. If you could share your use case, it would certainly help us decide to make this class part of it.

It would be really nice if you could edit this PR description to add your use case.

I'm reviewing this PR as "approved" and will merge as soon as you can share the description above. I'm sure nobody would have any concerns if you can provide such description :)

@@ -31,15 +30,15 @@
*/
@ToString
@EqualsAndHashCode
@AllArgsConstructor (access = AccessLevel.PACKAGE) // Visible for testing
@AllArgsConstructor
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just noticed this change here: this exposes a new constructor, to initialize the private fields (probabilisticSampler, lowerBoundSampler and tags).

I don't think we want that. In fact, I think this annotation can be removed altogether.

@jpkrohling jpkrohling dismissed their stale review June 29, 2018 08:12

Dismissing the review, because of the all-args constructor

@quaff quaff force-pushed the patch-1 branch 2 times, most recently from 47d9c79 to 2182c26 Compare June 29, 2018 08:53
@quaff
Copy link
Contributor Author

quaff commented Jun 29, 2018

@jpkrohling commit updated, since ProbabilisticSampler and RateLimitingSampler are public, why not GuaranteedThroughputSampler?

Copy link
Collaborator

@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.

There might be a reason why this is not public. I'll ask about it during our meeting today, but I think nobody will object to merging this.

You are more than welcome to join our meeting today!
https://github.com/jaegertracing/jaeger#project-status-bi-weekly-meeting

@ghost ghost assigned jpkrohling Jun 29, 2018
@ghost ghost added the review label Jun 29, 2018
@jpkrohling jpkrohling removed their assignment Jun 29, 2018
@jpkrohling
Copy link
Collaborator

@quaff Looks like a recent change caused merge conflicts with this PR. Would you please update it? Once it's rebased to the latest master, I'll merge it.

Developers can use GuaranteedThroughputSampler as their sampler like ProbabilisticSampler or RateLimitingSampler.

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
@quaff
Copy link
Contributor Author

quaff commented Jul 6, 2018

@jpkrohling updated.

@jpkrohling jpkrohling merged commit e08e616 into jaegertracing:master Jul 6, 2018
@ghost ghost removed the review label Jul 6, 2018
@jpkrohling
Copy link
Collaborator

Thanks, @quaff!

@quaff quaff deleted the patch-1 branch July 12, 2018 07:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants