8000 fix(node): Enable autoSessionTracking correctly (#3758) · jcomo/sentry-javascript@8ea6c9d · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ea6c9d

Browse files
authored
fix(node): Enable autoSessionTracking correctly (getsentry#3758)
Fixes getsentry#3754. If the autoSessionTracking option is undefined, we should be setting it to be true, not false.
1 parent f71bfd1 commit 8ea6c9d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/node/src/sdk.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ export function init(options: NodeOptions = {}): void {
110110
}
111111
}
112112

113-
if (options.autoSessionTracking === undefined) {
114-
options.autoSessionTracking = false;
115-
}
116-
117113
if (options.environment === undefined && process.env.SENTRY_ENVIRONMENT) {
118114
options.environment = process.env.SENTRY_ENVIRONMENT;
119115
}

0 commit comments

Comments
 (0)
0