-
-
Notifications
You must be signed in to change notification settings - Fork 461
Hubs/Scopes Merge 2 - Replace IHub with IScopes in core
#3298
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
|
IHub with IScopes in coreIHub with IScopes in core
lbloder
left a comment
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.
Highlighted some leftover references to Hub on comments and messages.
Otherwise LGTM 👍
| super(hub, logger, flushTimeoutMillis, maxQueueSize); | ||
| this.hub = Objects.requireNonNull(hub, "Hub is required."); | ||
| super(scopes, logger, flushTimeoutMillis, maxQueueSize); | ||
| this.scopes = Objects.requireNonNull(scopes, "Hub is required."); |
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.
Message should refer to Scopes rather than Hub
sentry/src/main/java/io/sentry/SendCachedEnvelopeFireAndForgetIntegration.java
Show resolved
Hide resolved
| final @NotNull IHub hub, final @NotNull SentryOptions options) { | ||
| Objects.requireNonNull(hub, "Hub is required"); | ||
| final @NotNull IScopes scopes, final @NotNull SentryOptions options) { | ||
| Objects.requireNonNull(scopes, "Hub is required"); |
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.
Message should refer to Scopes rather than Hub
| registered = true; | ||
|
|
||
| this.hub = Objects.requireNonNull(hub, "Hub is required"); | ||
| this.scopes = Objects.requireNonNull(scopes, "Hub is required"); |
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.
Message should refer to Scopes rather than Hub
| private val dsnTest = "https://[email protected]/proj" | ||
|
|
||
| private fun generateHub(optionsConfiguration: Sentry.OptionsConfiguration<SentryOptions>? = null): IHub { | ||
| private fun generateHub(optionsConfiguration: Sentry.OptionsConfiguration<SentryOptions>? = null): IScopes { |
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.
let's rename it to generateScopes?
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.
We need to create ScopesTest as a replacement for HubTest and thus don't need to change "hub" in HubTest as it's going to be removed anyways. Same should be true for Hub.
#skip-changelog
📜 Description
Follow up for #3297 changing core.
💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps