-
Notifications
You must be signed in to change notification settings - Fork 327
Implement sampling #16
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
Conversation
(closes #3) Signed-off-by: Felix Barnsteiner <felix.barnsteiner@elastic.co>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I was a bit confused at first by the name of the method isSampledbut after reading the rest of the code I get it. For me it would be maybe more intuitive to say a transaction is a sample not sampled, but I'm not english native....
|
|
||
| import co.elastic.apm.impl.transaction.TransactionId; | ||
|
|
||
| public class ConstantSampler implements Sampler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe some java doc saying what this is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
|
||
| import co.elastic.apm.impl.transaction.TransactionId; | ||
|
|
||
| public class ProbabilitySampler implements Sampler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe some java doc saying what this is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| import co.elastic.apm.impl.transaction.TransactionId; | ||
|
|
||
| /** | ||
| * A sampler is responsible for determining whether a {@link co.elastic.apm.api.Transaction} should be sampled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
BTW CI is failing, I guess it is they Keystore problem you are trying to fix in the other PR. |
|
@Qard does |
|
No, seems reasonable to me. |
(closes #3)
Signed-off-by: Felix Barnsteiner felix.barnsteiner@elastic.co