-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
SDK Version
7.93.0
Steps to Reproduce
The new session API endSession uses the isolationScope session but this does not include the initialScope passed to init.
Expected Result
If initialScope passed to init is set to {user:{username:'some_user'}}, the session did should be some_user.
Actual Result
did is empty.
This is likely because the initialScope is only added to the current hub scope in initAndBind:
sentry-javascript/packages/core/src/sdk.ts
Lines 32 to 35 in 84791bf
| const hub = getCurrentHub(); | |
| // eslint-disable-next-line deprecation/deprecation | |
| const scope = hub.getScope(); | |
| scope.update(options.initialScope); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Fields
Give feedbackNo fields configured for issues without a type.