-
Notifications
You must be signed in to change notification settings - Fork 651
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 delegate sampler for each possible case in ParentBased Sampler #1440
Conversation
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 like you're missing test coverage of passing in a different sampler for the new params
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.
Just a nit about the tests, otherwise the PR looks.
@@ -329,11 +331,101 @@ def exec_parent_based(self, parent_sampling_context): | |||
self.assertEqual(not_sampled_result.attributes, {}) | |||
self.assertEqual(not_sampled_result.trace_state, trace_state) | |||
|
|||
with parent_sampling_context( |
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.
nit: these tests could be refactored to make them easier, there's a lot of duplicate code here
Fixes #1397