-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
Hubs / Scopes Merge 16 - Move client and throwable to span map to scope #3318
Conversation
…pes-merge-2-add-scopes
|
@@ -40,10 +36,6 @@ public final class Scopes implements IScopes, MetricsApi.IMetricsInterface { | |||
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).
@@ -85,6 +90,11 @@ public final class Scope implements IScope { | |||
|
|||
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
@@ -85,6 +90,11 @@ public final class Scope implements IScope { | |||
|
|||
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
sendDefaultPII
is enabled.🔮 Next steps