-
-
Couldn't load subscription status.
- Fork 458
Hubs / Scopes Merge 16 - Move client and throwable to span map to scope #3318
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
…pes-merge-2-add-scopes
|
| private final @NotNull SentryOptions options; | ||
| private volatile boolean isEnabled; | ||
| private final @NotNull TracesSampler tracesSampler; | ||
|
|
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.
Having a separate map per Scopes will break the feature since it's forked more often than hub used to be (at least for non mobile).
| private @NotNull ISentryClient client = NoOpSentryClient.getInstance(); | ||
|
|
||
| // TODO intended only for global scope | ||
| // TODO test for memory leak |
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.
This needs testing once enough changes have been implemented to check for memory leaks.
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.
Agree, we might have to remove the entries that have been sent to Sentry from the map.
But this would have been an issue with Hub as well 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.
Looks good
| private @NotNull ISentryClient client = NoOpSentryClient.getInstance(); | ||
|
|
||
| // TODO intended only for global scope | ||
| // TODO test for memory leak |
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.
Agree, we might have to remove the entries that have been sent to Sentry from the map.
But this would have been an issue with Hub as well I think.
#skip-changelog
📜 Description
Move client and throwable to span map to scope.
💡 Motivation and Context
Both shall be on global scope by default.
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps