Skip to content

Conversation

@danielfireman
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Dec 22, 2017

Coverage Status

Coverage increased (+15.5%) to 29.756% when pulling 619dda7 on of_sampler into d456d9c on master.

Copy link
Member

@dfquaresma dfquaresma left a comment

Choose a reason for hiding this comment

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

Well done! Now there is no dangerous counters at sampler.go, thanks!
To fix #1 completly we still should take care about others dangerous counters as incoming and finished at interceptor.go or gcCount at unavailability.go, but I'm approving that PR anyway. You may want do it in another PR.
Please follow my single comment below. Thanks again!

next int // Next index in the past slice.
past []int64 // History of sample size between collections.
lastFinished int64 // Last number of finished requests.
curr int64 // Current sample size.
Copy link
Member

Choose a reason for hiding this comment

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

I believe that "current sample size" could be misunderstood as "the size of sampler" since newSampler receives a size as parameter, but that's just a detail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is important. Good catch! Fixed.

@coveralls
Copy link

coveralls commented Dec 23, 2017

Coverage Status

Coverage increased (+15.5%) to 29.756% when pulling 5434d7c on of_sampler into d456d9c on master.

@danielfireman danielfireman merged commit 180a465 into master Dec 23, 2017
@danielfireman danielfireman deleted the of_sampler branch December 23, 2017 20:26
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.

4 participants