-
-
Notifications
You must be signed in to change notification settings - Fork 192
fix: update traces_sampler
to also take user_data
argument
#1346
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
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.
Thanks on behalf of downstream SDKs! :) This looks good, no need to inject internal values into the user's 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.
The changes look good. I hope @supervacuus is ok with the break.
(this would become part of the same release that includes the first Logs implementation for native, so I think bundling this in as a breaking change for native 0.11.0 is fine) |
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.
Yes, I am not happy that we have to break here, and I would argue that a second option setter + callback type is fine here.
However, the API is marked as experimental, very new, and having two just for the sampler is probably more confusing. So, whiny LGTM.
fixes #1345