Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SPRING_SLEUTH_SAMPLER_PERCENTAGE is not a percentage #397

Closed
cer opened this issue Sep 10, 2016 · 8 comments
Closed

SPRING_SLEUTH_SAMPLER_PERCENTAGE is not a percentage #397

cer opened this issue Sep 10, 2016 · 8 comments

Comments

@cer
Copy link

cer commented Sep 10, 2016

Isn't a percentage between 0 and 100%?

@marcingrzejszczak
Copy link
Contributor

Since percents as their name suggests are values divided by 100 you can also represent them as a double ( 80% == 80/100 == 0.8). We've decided to go with the double representation :)

But English is not my native language so maybe we've used a wrong name for the property. @adriancole WDYT?

@codefromthecrypt
Copy link
Contributor

Maybe threshold is a better term for a 0-1 function?

On 11 Sep 2016 14:17, "Marcin Grzejszczak" notifications@github.com wrote:

Since percents as their name suggests are values divided by 100 you can
also represent them as a double ( 80% == 80/100 == 0.8). We've decided to
go with the double representation :)

But English is not my native language so maybe we've used a wrong name for
the property. @adriancole https://github.com/adriancole WDYT?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#397 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAD619GAqJ2rqDDaOTS9_bpi1KgwZ-vHks5qo5z5gaJpZM4J52tD
.

@cer
Copy link
Author

cer commented Sep 12, 2016

I think threshold means something else.
Mathematically speaking this value is a probability, which is a number between 0 and 1

@codefromthecrypt
Copy link
Contributor

SGTM! thanks, chris

On Mon, Sep 12, 2016 at 11:22 AM, Chris Richardson <notifications@github.com

wrote:

I think threshold means something else.
Mathematically speaking this value is a probability
https://en.wikipedia.org/wiki/Probability, which is a number between 0
and 1


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#397 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAD615fqtAsvCpGb_GfqjZ5bVBiAvtYlks5qpMVigaJpZM4J52tD
.

@marcingrzejszczak
Copy link
Contributor

This is a breaking change actually (which I don't like to do). We could allow people to provide entries greater > 0. You could then provide

SPRING_SLEUTH_SAMPLER_PERCENTAGE=0.5

or

SPRING_SLEUTH_SAMPLER_PERCENTAGE=50

and that would be the same. I could also provide a new property for version 1.1 and deprecate the old one (but not remove it). I could remove it for 1.2 or sth like that. WDYT?

@marcingrzejszczak
Copy link
Contributor

ping @cer ?

@cer
Copy link
Author

cer commented Sep 22, 2016

SGTM

@dsyer
Copy link
Contributor

dsyer commented Oct 14, 2016

What if you actually wanted 0.5% (not completely unlikely)? I think it might be better that we just live with it and document the mistake. Or else introduce a new notation with "%" in it or something (seems like overkill for such a simple thing).

@marcingrzejszczak marcingrzejszczak modified the milestones: 1.0.11, 1.0.10 Oct 18, 2016
marcingrzejszczak added a commit that referenced this issue Oct 27, 2016
without this change the percentage value might have been set to over 1.0
with this change we explain what are the valid values and what are the reasons for keeping the value as it is

fixes #397
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants