You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/scopes.mdc
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ Android has `globalHubMode` enabled by default.
79
79
For JVM Desktop applications, `globalHubMode` can be used.
80
80
For JVM Backend applications (servers) we discourage enabling `globalHubMode` since it will cause scopes to bleed into each other. This can e.g. mean that state from request A leaks into request B and events sent to Sentry contain a mix of both request A and B potentially rendering the data useless.
81
81
82
-
### Disabled
82
+
### Enabled
83
83
84
84
If `globalHubMode` is enabled, the SDK avoids forking scopes.
85
85
@@ -93,7 +93,7 @@ This means the forked scopes have to be managed manually, e.g. by keeping a refe
93
93
94
94
`ScopesAdapter` makes use of the static `Sentry` API internally. It allows us to access the correct scopes for the current context without passing it along explicitly. It also makes testing easier.
95
95
96
-
### Enabled
96
+
### Disabled
97
97
98
98
If `globalHubMode` is disabled, the SDK forks scopes freely, e.g. when:
99
99
- `Sentry.getCurrentScopes()` is executed on a Thread where no specific scopes for that thread have been stored yet. In this case the SDK will fork `rootScopes` (stored in a `Sentry` static property).
0 commit comments