-
-
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 21 - Allow controlling which scope configureScope
uses
#3345
Merged
Merged
Changes from all commits
Commits
Show all changes
26 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 bbb6700
Use separate scopes for current, isolation and global scope; rename m…
adinauer c714b21
Allow controlling which scope configureScope uses
adinauer 3d6f2fe
Merge branch '8.x.x' into feat/hsm-21-configure-scope-configurable
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.sentry; | ||
|
||
public enum ScopeType { | ||
CURRENT, | ||
ISOLATION, | ||
GLOBAL; | ||
} |
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
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.
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.
m
: I guess we should do the same forwithScope
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.
Yeah, will add in a follow up PR.
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.
Ah, this has the same problem as having an overload for
forkedScope
wherewithScope(ISOLATION) ...
forks both isolation and current scope which might be confusing.Maybe having another method called
withIsolationScope
, as RFC suggests, is better but very similar.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.
Adding
withIsolationScope
in a follow up PR