Skip to content

Commit dba4b32

Browse files
authored
Apply suggestions from code review
1 parent e4f0b8d commit dba4b32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.cursor/rules/scopes.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Android has `globalHubMode` enabled by default.
7979
For JVM Desktop applications, `globalHubMode` can be used.
8080
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.
8181

82-
### Disabled
82+
### Enabled
8383

8484
If `globalHubMode` is enabled, the SDK avoids forking scopes.
8585

@@ -93,7 +93,7 @@ This means the forked scopes have to be managed manually, e.g. by keeping a refe
9393

9494
`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.
9595

96-
### Enabled
96+
### Disabled
9797

9898
If `globalHubMode` is disabled, the SDK forks scopes freely, e.g. when:
9999
- `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

Comments
 (0)