Skip to content

Commit 0846471

Browse files
committed
review
1 parent c7ea053 commit 0846471

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/migration/draft-v9-migration-guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- **The `autoSessionTracking` option is deprecated.**
2323

2424
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.
25-
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`.
25+
To disable session tracking, it is recommended unset `autoSessionTracking` and to remove the `browserSessionIntegration` in browser environments, or in server environments configure the `httpIntegration` with the `trackIncomingRequestsAsSessions` option set to `false`.
2626

2727
## `@sentry/utils`
2828

packages/angular/src/sdk.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export function getDefaultIntegrations(options: BrowserOptions = {}): Integratio
4242
httpContextIntegration(),
4343
];
4444

45+
// eslint-disable-next-line deprecation/deprecation
4546
if (options.autoSessionTracking !== false) {
4647
integrations.push(browserSessionIntegration());
4748
}

packages/core/src/types-hoist/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
3030
*
3131
* @deprecated Setting the `autoSessionTracking` option is deprecated.
3232
* 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.
33-
* 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`.
33+
* To disable session tracking, it is recommended unset `autoSessionTracking` and to remove the `browserSessionIntegration` in browser environments, or in server environments configure the `httpIntegration` with the `trackIncomingRequestsAsSessions` option set to `false`.
3434
*/
3535
autoSessionTracking?: boolean;
3636

0 commit comments

Comments
 (0)