Skip to content

Commit 2c029b8

Browse files
authored
Disable autoSessionTracking by default (#3511)
1 parent dbe678d commit 2c029b8

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

packages/node/src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function init(options: NodeOptions = {}): void {
104104
}
105105

106106
if (options.autoSessionTracking === undefined) {
107-
options.autoSessionTracking = true;
107+
options.autoSessionTracking = false;
108108
}
109109

110110
if (options.environment === undefined && process.env.SENTRY_ENVIRONMENT) {

packages/node/test/manual/release-health/single-session/caught-exception-errored-session.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Sentry.init({
4343
dsn: 'http://[email protected]/1337',
4444
release: '1.1',
4545
transport: DummyTransport,
46+
autoSessionTracking: true
4647
});
4748

4849
/**

packages/node/test/manual/release-health/single-session/healthy-session.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class DummyTransport extends BaseDummyTransport {
3232
Sentry.init({
3333
dsn: 'http://[email protected]/1337',
3434
release: '1.1',
35-
transport: DummyTransport
35+
transport: DummyTransport,
36+
autoSessionTracking: true
3637
});
3738

3839
/**

packages/node/test/manual/release-health/single-session/uncaught-exception-crashed-session.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class DummyTransport extends BaseDummyTransport {
2424
Sentry.init({
2525
dsn: 'http://[email protected]/1337',
2626
release: '1.1',
27-
transport: DummyTransport
27+
transport: DummyTransport,
28+
autoSessionTracking: true
2829
});
2930
/**
3031
* The following code snippet will throw an exception of `mechanism.handled` equal to `false`, and so this session

packages/node/test/manual/release-health/single-session/unhandled-rejection-crashed-session.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class DummyTransport extends BaseDummyTransport {
3434
Sentry.init({
3535
dsn: 'http://[email protected]/1337',
3636
release: '1.1',
37-
transport: DummyTransport
37+
transport: DummyTransport,
38+
autoSessionTracking: true
3839
});
3940

4041
/**

0 commit comments

Comments
 (0)