Skip to content

Conversation

@jackshirazi
Copy link
Contributor

Description:

Per #2016 this refactors ConsistentFixedThresholdSampler to setup for a subsequent change that allows for a fixed (final threshold) and a dynamic (volatile threshold) sampler as subclasses

Existing Issue(s):

#2016

Testing:

Tested a variant in a distribution per the issue, will repeat the full test with the final implementation when the issue is complete

Documentation:

No change needed (yet)

Outstanding items:

Refactoring to an abstract class and addition of two concrete subclasses Fixed and Dynamic

@jackshirazi jackshirazi requested a review from a team July 10, 2025 07:41
@github-actions github-actions bot requested review from PeterF778 and oertl July 10, 2025 07:42
Copy link
Contributor

@PeterF778 PeterF778 left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@SylvainJuge SylvainJuge left a comment

Choose a reason for hiding this comment

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

LGTM as a first step, looking forward to see the implementation split in two sub-classes.

@trask trask added this pull request to the merge queue Jul 17, 2025
Merged via the queue into open-telemetry:main with commit e81ef92 Jul 17, 2025
31 checks passed
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