Skip to content

Commit ea85dde

Browse files
Lms24cursoragent
andcommitted
test: disable span streaming in transaction-asserting tests
Co-Authored-By: Cursor <cursoragent@cursor.com>
1 parent b5bf632 commit ea85dde

863 files changed

Lines changed: 879 additions & 12 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/sdkLoadedInMeanwhile/subject.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ setTimeout(() => {
66

77
cdnScript.addEventListener('load', () => {
88
Sentry.init({
9+
traceLifecycle: 'static',
910
dsn: 'https://public@dsn.ingest.sentry.io/1337',
1011
replaysSessionSampleRate: 0.42,
1112
});

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/addBreadcrumb/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Sentry.onLoad(function () {
2-
Sentry.init({});
2+
Sentry.init({ traceLifecycle: 'static' });
33
Sentry.addBreadcrumb({
44
category: 'auth',
55
message: 'testing loader',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Sentry.onLoad(function () {
22
// You _have_ to call Sentry.init() before calling Sentry.captureException() in Sentry.onLoad()!
3-
Sentry.init();
3+
Sentry.init({ traceLifecycle: 'static' });
44
Sentry.captureException('Test exception');
55
});

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customBrowserTracing/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ window._testBaseTimestamp = performance.timeOrigin / 1000;
22

33
Sentry.onLoad(function () {
44
Sentry.init({
5+
traceLifecycle: 'static',
56
integrations: [
67
// Without this syntax, this will be re-written by the test framework
78
window['Sentry'].browserTracingIntegration(),

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customInit/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ setTimeout(() => {
55
window.__hadSentry = window.sentryIsLoaded();
66

77
Sentry.init({
8+
traceLifecycle: 'static',
89
sampleRate: 0.5,
910
});
1011

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customIntegrations/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class CustomIntegration {
88

99
Sentry.onLoad(function () {
1010
Sentry.init({
11+
traceLifecycle: 'static',
1112
integrations: [new CustomIntegration()],
1213
});
1314

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customIntegrationsFunction/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class CustomIntegration {
88

99
Sentry.onLoad(function () {
1010
Sentry.init({
11+
traceLifecycle: 'static',
1112
integrations: integrations => [new CustomIntegration()].concat(integrations),
1213
});
1314

dev-packages/browser-integration-tests/loader-suites/loader/onLoad/customReplay/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Sentry.onLoad(function () {
22
Sentry.init({
3+
traceLifecycle: 'static',
34
integrations: [
45
// Without this syntax, this will be re-written by the test framework
56
window['Sentry'].replayIntegration({
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Sentry.onLoad(function () {
2-
Sentry.init({});
2+
Sentry.init({ traceLifecycle: 'static' });
33
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
window.sentryOnLoad = function () {
2-
Sentry.init({});
2+
Sentry.init({ traceLifecycle: 'static' });
33

44
window.__sentryLoaded = true;
55
};

0 commit comments

Comments
 (0)