Skip to content

Commit 7865a2c

Browse files
committed
wip
1 parent b54f2c8 commit 7865a2c

File tree

135 files changed

+262
-10576
lines changed

Some content is hidden

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

135 files changed

+262
-10576
lines changed

dev-packages/node-core-integration-tests/suites/anr/app-path.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as Sentry from '@sentry/node-core';
2-
import { setupOtel } from '../../utils/setupOtel.js';
32
import * as assert from 'assert';
43
import * as crypto from 'crypto';
54
import * as path from 'path';
65
import * as url from 'url';
6+
import { setupOtel } from '../../utils/setupOtel.js';
77

88
global._sentryDebugIds = { [new Error().stack]: 'aaaaaaaa-aaaa-4aaa-aaaa-aaaaaaaaaa' };
99

@@ -19,7 +19,6 @@ const client = Sentry.init({
1919
integrations: [Sentry.anrIntegration({ captureStackTrace: true, anrThreshold: 100, appRootPath: __dirname })],
2020
});
2121

22-
2322
setupOtel(client);
2423

2524
Sentry.setUser({ email: 'person@home.com' });

dev-packages/node-core-integration-tests/suites/anr/basic-multiple.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Sentry from '@sentry/node-core';
2-
import { setupOtel } from '../../utils/setupOtel.js';
32
import * as assert from 'assert';
43
import * as crypto from 'crypto';
4+
import { setupOtel } from '../../utils/setupOtel.js';
55

66
global._sentryDebugIds = { [new Error().stack]: 'aaaaaaaa-aaaa-4aaa-aaaa-aaaaaaaaaa' };
77

@@ -15,7 +15,6 @@ const client = Sentry.init({
1515
integrations: [Sentry.anrIntegration({ captureStackTrace: true, anrThreshold: 100, maxAnrEvents: 2 })],
1616
});
1717

18-
1918
setupOtel(client);
2019

2120
Sentry.setUser({ email: 'person@home.com' });

dev-packages/node-core-integration-tests/suites/anr/basic.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Sentry from '@sentry/node-core';
2-
import { setupOtel } from '../../utils/setupOtel.js';
32
import * as assert from 'assert';
43
import * as crypto from 'crypto';
4+
import { setupOtel } from '../../utils/setupOtel.js';
55

66
global._sentryDebugIds = { [new Error().stack]: 'aaaaaaaa-aaaa-4aaa-aaaa-aaaaaaaaaa' };
77

@@ -15,7 +15,6 @@ const client = Sentry.init({
1515
integrations: [Sentry.anrIntegration({ captureStackTrace: true, anrThreshold: 100 })],
1616
});
1717

18-
1918
setupOtel(client);
2019

2120
Sentry.setUser({ email: 'person@home.com' });

dev-packages/node-core-integration-tests/suites/anr/indefinite.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Sentry from '@sentry/node-core';
2-
import { setupOtel } from '../../utils/setupOtel.js';
32
import * as assert from 'assert';
43
import * as crypto from 'crypto';
4+
import { setupOtel } from '../../utils/setupOtel.js';
55

66
setTimeout(() => {
77
process.exit();
@@ -13,7 +13,6 @@ const client = Sentry.init({
1313
integrations: [Sentry.anrIntegration({ captureStackTrace: true, anrThreshold: 100 })],
1414
});
1515

16-
1716
setupOtel(client);
1817

1918
Sentry.setUser({ email: 'person@home.com' });

dev-packages/node-core-integration-tests/suites/anr/isolated.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Sentry from '@sentry/node-core';
2-
import { setupOtel } from '../../utils/setupOtel.js';
32
import * as assert from 'assert';
43
import * as crypto from 'crypto';
4+
import { setupOtel } from '../../utils/setupOtel.js';
55

66
setTimeout(() => {
77
process.exit();
@@ -13,7 +13,6 @@ const client = Sentry.init({
1313
integrations: [Sentry.anrIntegration({ captureStackTrace: true, anrThreshold: 100 })],
1414
});
1515

16-
1716
setupOtel(client);
1817

1918
async function longWork() {

dev-packages/node-core-integration-tests/suites/anr/should-exit-forced.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ function configureSentry() {
66
dsn: 'https://public@dsn.ingest.sentry.io/1337',
77
release: '1.0',
88
debug: true,
9-
integrations: [Sentry.anrIntegration({ captureStackTrace: true })
10-
11-
setupOtel(client);],
9+
integrations: [Sentry.anrIntegration({ captureStackTrace: true })],
1210
});
11+
setupOtel(client);
1312
}
1413

1514
async function main() {

dev-packages/node-core-integration-tests/suites/anr/should-exit.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ function configureSentry() {
66
dsn: 'https://public@dsn.ingest.sentry.io/1337',
77
release: '1.0',
88
debug: true,
9-
integrations: [Sentry.anrIntegration({ captureStackTrace: true })
10-
11-
setupOtel(client);],
9+
integrations: [Sentry.anrIntegration({ captureStackTrace: true })],
1210
});
11+
setupOtel(client);
1312
}
1413

1514
async function main() {

dev-packages/node-core-integration-tests/suites/breadcrumbs/process-thread/app.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as Sentry from '@sentry/node-core';
2-
import { setupOtel } from '../../../utils/setupOtel.js';
32
import { loggingTransport } from '@sentry-internal/node-integration-tests';
43
import { spawn } from 'child_process';
54
import { join } from 'path';
65
import { Worker } from 'worker_threads';
6+
import { setupOtel } from '../../../utils/setupOtel.js';
77

88
const __dirname = new URL('.', import.meta.url).pathname;
99

@@ -14,7 +14,6 @@ const client = Sentry.init({
1414
transport: loggingTransport,
1515
});
1616

17-
1817
setupOtel(client);
1918

2019
(async () => {

dev-packages/node-core-integration-tests/suites/child-process/fork.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as Sentry from '@sentry/node-core';
2-
import { setupOtel } from '../../utils/setupOtel.js';
32
import { loggingTransport } from '@sentry-internal/node-integration-tests';
43
import { fork } from 'child_process';
54
import * as path from 'path';
5+
import { setupOtel } from '../../utils/setupOtel.js';
66

77
const __dirname = new URL('.', import.meta.url).pathname;
88

@@ -13,7 +13,6 @@ const client = Sentry.init({
1313
transport: loggingTransport,
1414
});
1515

16-
1716
setupOtel(client);
1817

1918
fork(path.join(__dirname, 'child.mjs'));

dev-packages/node-core-integration-tests/suites/child-process/worker.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as Sentry from '@sentry/node-core';
2-
import { setupOtel } from '../../utils/setupOtel.js';
32
import { loggingTransport } from '@sentry-internal/node-integration-tests';
43
import * as path from 'path';
54
import { Worker } from 'worker_threads';
5+
import { setupOtel } from '../../utils/setupOtel.js';
66

77
const __dirname = new URL('.', import.meta.url).pathname;
88

@@ -13,7 +13,6 @@ const client = Sentry.init({
1313
transport: loggingTransport,
1414
});
1515

16-
1716
setupOtel(client);
1817

1918
new Worker(path.join(__dirname, 'child.mjs'));

0 commit comments

Comments
 (0)