Skip to content

Conversation

@jackshirazi
Copy link
Contributor

Description:

Refactored the ConsistentFixedThresholdSampler class into a ConsistentThresholdSampler abstract class and ConsistentFixedThresholdSampler subclass, then added ConsistentVariableThresholdSampler class which is mutable

Existing Issue(s):

closes #2016

Testing:

Test class added for new updateable sampler.

Documentation:

ConsistentSampler additional public method has added documentation

Outstanding items:

Nothing obvious

@jackshirazi jackshirazi requested a review from a team as a code owner August 19, 2025 18:57
@github-actions github-actions bot requested review from PeterF778 and oertl August 19, 2025 18:57
@jackshirazi jackshirazi requested review from oertl and removed request for oertl August 19, 2025 18:57
} else {
thresholdString =
ConsistentSamplingUtil.appendLast56BitHexEncodedWithoutTrailingZeros(
new StringBuilder(), threshold)
Copy link
Contributor

Choose a reason for hiding this comment

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

Other static methods of ConsistentSamplingUtil are in the "import static", why this is different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, thanks! Updated

@trask trask added this to the v1.49.0 milestone Aug 21, 2025
@trask trask added this pull request to the merge queue Aug 22, 2025
Merged via the queue into open-telemetry:main with commit 40bfdac Aug 22, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants