-
-
Notifications
You must be signed in to change notification settings - Fork 444
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 19 - Add pushIsolationScope
and fork methods
#3343
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
305baf5
replace hub with scopes
adinauer 95f5e1b
Add Scopes
adinauer 27f2398
Introduce `IScopes` interface.
adinauer ce3c14f
Replace `IHub` with `IScopes` in core
adinauer ce615f4
Replace `IHub` with `IScopes` in android core
adinauer 22ddc00
Replace `IHub` with `IScopes` in android integrations
adinauer 305c217
Replace `IHub` with `IScopes` in apollo integrations
adinauer da927bc
Replace `IHub` with `IScopes` in okhttp integration
adinauer 8279276
Replace `IHub` with `IScopes` in graphql integration
adinauer 9bfc086
Replace `IHub` with `IScopes` in logging integrations
adinauer b998e50
Replace `IHub` with `IScopes` in more integrations
adinauer 739827a
Replace `IHub` with `IScopes` in OTel integration
adinauer 69f2d63
Replace `IHub` with `IScopes` in Spring 5 / Spring Boot 2 integrations
adinauer 792d482
Replace `IHub` with `IScopes` in Spring 6 / Spring Boot 3 integrations
adinauer 9bcbce6
Replace `IHub` with `IScopes` in samples
adinauer 3f25a4b
Merge branch 'feat/hsm-13-replacements-in-samples' into feat/hubs-sco…
adinauer d6fb40a
gitscopes -> github
adinauer 7752bcc
Replace ThreadLocal with ScopesStorage
adinauer 1e329c5
Move client and throwable to span map to scope
adinauer b0d89ae
Add global scope
adinauer cdd414a
use global scope in Scopes
adinauer 98da9ff
Implement pushScope popScope and withScope for Scopes
adinauer 2d26033
Add pushIsolationScope; add fork methods to ISCope
adinauer 24ab503
Merge branch '8.x.x' into feat/hsm-19-push-isolation-scope-fork
adinauer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -309,6 +309,9 @@ default void addBreadcrumb(@NotNull String message, @NotNull String category) { | |
@NotNull | ||
ISentryLifecycleToken pushScope(); | ||
|
||
@NotNull | ||
ISentryLifecycleToken pushIsolationScope(); | ||
|
||
/** Removes the first scope */ | ||
void popScope(); | ||
|
||
|
@@ -354,12 +357,54 @@ default void addBreadcrumb(@NotNull String message, @NotNull String category) { | |
/** | ||
* Clones the Hub | ||
* | ||
* @deprecated please use {@link IScopes#forkedScopes(String)} or {@link | ||
* IScopes#forkedCurrentScope(String)} instead. | ||
* @return the cloned Hub | ||
*/ | ||
@NotNull | ||
@Deprecated | ||
IHub clone(); | ||
|
||
/** | ||
* Creates a fork of both current and isolation scope. | ||
* | ||
* @param creator debug information to see why scopes where forked | ||
* @return forked Scopes | ||
*/ | ||
@NotNull | ||
IScopes forkedScopes(final @NotNull String creator); | ||
|
||
/** | ||
* Creates a fork of current scope without forking isolation scope. | ||
* | ||
* @param creator debug information to see why scopes where forked | ||
* @return forked Scopes | ||
*/ | ||
@NotNull | ||
IScopes forkedCurrentScope(final @NotNull String creator); | ||
|
||
/** | ||
* Stores this Scopes in store, making it the current one that is used by static API. | ||
* | ||
* @return a token you should call .close() on when you're done. | ||
*/ | ||
@NotNull | ||
ISentryLifecycleToken makeCurrent(); | ||
|
||
/** | ||
* Returns the current scope of this Scopes. | ||
* | ||
* @return scope | ||
*/ | ||
public @NotNull IScope getScope(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
/** | ||
* Returns the isolation scope of this Scopes. | ||
* | ||
* @return isolation scope | ||
*/ | ||
public @NotNull IScope getIsolationScope(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
/** | ||
* Captures the transaction and enqueues it for sending to Sentry server. | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't this also be
Sentry.pushIsolationScope()
? Same as in HubAdapter?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.
Hub
should be removed before releasing the major IMO.