Skip to content

Commit

Permalink
fix(node): Enable autoSessionTracking correctly (#3758)
Browse files Browse the repository at this point in the history
Fixes #3754.

If the autoSessionTracking option is undefined, we should be setting
it to be true, not false.
  • Loading branch information
AbhiPrasad authored Jun 28, 2021
1 parent f71bfd1 commit 8ea6c9d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/node/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ export function init(options: NodeOptions = {}): void {
}
}

if (options.autoSessionTracking === undefined) {
options.autoSessionTracking = false;
}

if (options.environment === undefined && process.env.SENTRY_ENVIRONMENT) {
options.environment = process.env.SENTRY_ENVIRONMENT;
}
Expand Down

0 comments on commit 8ea6c9d

Please sign in to comment.