-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Fix: Context Escape with ScopeCallback
#925
Conversation
Codecov Report
@@ Coverage Diff @@
## main #925 +/- ##
==========================================
+ Coverage 89.77% 89.94% +0.16%
==========================================
Files 104 9 -95
Lines 3208 169 -3039
==========================================
- Hits 2880 152 -2728
+ Misses 328 17 -311 Continue to review full report at Codecov.
|
@denrase PR is marked ready to review but there are open issues still. |
…ntry-dart into fix/sope-callback-signature
|
…ntry-dart into fix/sope-callback-signature
CI issue occurs from running |
I believe it could be because of how |
📜 Description
ScopeCallback
ScopeCallback
fromvoid Function(Scope)
toFutureOr<void> Function(Scope)
configureScope
static void configureScope(ScopeCallback callback)
tostatic FutureOr<void> configureScope(ScopeCallback callback)
inSentry
class.void configureScope(ScopeCallback callback)
toFutureOr<void> configureScope(ScopeCallback callback)
inHub
class.clone
static Hub clone()
tostatic Future<Hub> clone()
inSentry
class.static Hub clone()
tostatic Future<Hub> clone()
inHub/HubAdapter
classes.Scope clone()
toFuture<Scope> clone()
inScope
class.addBreadcrumb
static void addBreadcrumb(Breadcrumb crumb, {dynamic hint})
tostatic Future<void> addBreadcrumb(Breadcrumb crumb, {dynamic hint})
inScope
class.void addBreadcrumb(Breadcrumb crumb, {dynamic hint})
toFuture<void> addBreadcrumb(Breadcrumb crumb, {dynamic hint})
inHub/HubAdapter
class.Other
async
methods inSentryNavigatorObserver
, as they were only ever called from sync methods.💡 Motivation and Context
Closes #921
💚 How did you test it?
Ran tests.
📝 Checklist
🔮 Next steps