-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
fix: Stopping the SDK from creating DynamicSamplingContext Exception
#2592
Conversation
DynamicSamplingContext Exception
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.
@bitsandfoxes I'm not sure I get this. Other than adding logging (when creating the dynamic sampling context from the propagation context) what has changed here?
The SDK is now no longer throwing exceptions. Instead of being opinionated regarding the setter being called only once we defensively handle the dynamic sampling context creation in the getter. |
Ah I see, there's no setter for DynamicSamplingContext anymore... |
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 generally. I just had some questions about the SentryPropagationContext constructor but otherwise good to go I think.
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 code itself looks good... once our CI build environment is healthy again 👍🏻
Resolves #2591
The scope did not copy the propagation context when being cloned. All scopes held a reference to the same context object.