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

Use a formula for tolerance in sampling tests #298

Merged
merged 1 commit into from
Nov 8, 2019

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Nov 7, 2019

@jmacd
Copy link
Contributor Author

jmacd commented Nov 7, 2019

The tolerances shift from 0.015 to around 0.02 (the 25% and 75% tests) and around 0.024 (the 50% test).


if tc.expect > 0 && tc.expect < 1 {
// See https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval
const z = 4.75342 // This should succeed 99.9999% of the time
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer if you went with the Wilson score interval with continuity correction.

Joking, of course. ;)

@rghetia rghetia merged commit 769a03a into open-telemetry:master Nov 8, 2019
@jmacd jmacd deleted the jmacd/deflake_sampling branch November 15, 2019 21:04
hstan referenced this pull request in hstan/opentelemetry-go Oct 15, 2020
…#298)

* fix: change options to accept providers

* fix: include semver in instrumentation creation

* fix: lint

* fix: Change WithTraceProvider to WithTracerProvider

Co-authored-by: Tyler Yahn <[email protected]>
@pellared pellared added this to the untracked milestone Nov 8, 2024
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.

5 participants