Skip to content

feat: Deprecate autoSessionTracking#14640

Merged
lforst merged 3 commits intodevelopfrom
lforst-deprecate-auto-session-tracking
Dec 11, 2024
Merged

feat: Deprecate autoSessionTracking#14640
lforst merged 3 commits intodevelopfrom
lforst-deprecate-auto-session-tracking

Conversation

@lforst
Copy link
Copy Markdown
Contributor

@lforst lforst commented Dec 10, 2024

Ref #14550

Deprecates autoSessionTracking. Instead, the browserSessionIntegration and httpIntegration({ trackIncomingRequestsAsSessions: ... }) should be used.

- **The `autoSessionTracking` option is deprecated.**

To enable session tracking, it is recommended to unset `autoSessionTracking` and ensure that either, in browser environments the `browserSessionIntegration` is added, or in server environments the `httpIntegration` is added.
To disable session tracking, it is recommended unset `autoSessionTracking` and to remove the `browserSessionIntegration` in browser environments, or configure the `httpIntegration` with the `trackIncomingRequestsAsSessions` option set to `false`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: Is this last part about trackIncomingRequestsAsSessions specific to server environments?

*
* @deprecated Setting the `autoSessionTracking` option is deprecated.
* To enable session tracking, it is recommended to unset `autoSessionTracking` and ensure that either, in browser environments the `browserSessionIntegration` is added, or in server environments the `httpIntegration` is added.
* To disable session tracking, it is recommended unset `autoSessionTracking` and to remove the `browserSessionIntegration` in browser environments, or configure the `httpIntegration` with the `trackIncomingRequestsAsSessions` option set to `false`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: Is this last part about trackIncomingRequestsAsSessions specific to server environments?

@lforst lforst merged commit 72239ee into develop Dec 11, 2024
@lforst lforst deleted the lforst-deprecate-auto-session-tracking branch December 11, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants