File tree 3 files changed +13
-9
lines changed
dev-packages/e2e-tests/test-applications/node-profiling
3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -1411,6 +1411,10 @@ jobs:
1411
1411
key : ${{ needs.job_build.outputs.dependency_cache_key }}
1412
1412
enableCrossOsArchive : true
1413
1413
1414
+ - name : Increase yarn network timeout on Windows
1415
+ if : contains(matrix.os, 'windows')
1416
+ run : yarn config set network-timeout 600000 -g
1417
+
1414
1418
- name : Install dependencies
1415
1419
env :
1416
1420
SKIP_PLAYWRIGHT_BROWSER_INSTALL : " 1"
@@ -1421,10 +1425,6 @@ jobs:
1421
1425
run : |
1422
1426
git config --global --add safe.directory "*"
1423
1427
1424
- - name : Increase yarn network timeout on Windows
1425
- if : contains(matrix.os, 'windows')
1426
- run : yarn config set network-timeout 600000 -g
1427
-
1428
1428
- name : Setup python
1429
1429
uses : actions/setup-python@v5
1430
1430
if : ${{ !contains(matrix.container, 'alpine') }}
Original file line number Diff line number Diff line change 1
1
// This tests asserts that @sentr /profiling-node is not patching globalThis values, which
2
2
// breaks our runtime detection and can break instrumentation
3
3
// https://github.com/getsentry/sentry-javascript/issues/14525#issuecomment-2511208064
4
+ import * as Sentry from '@sentry/node' ;
5
+ import { nodeProfilingIntegration } from '@sentry/profiling-node' ;
6
+
7
+ console . log ( '🧵 Starting ESM test' ) ;
8
+
9
+ const wait = ms => new Promise ( resolve => setTimeout ( resolve , ms ) ) ;
4
10
5
11
function assertUnpatechedRequire ( ) {
6
- if ( typeof globalThis . require !== 'undefined' ) {
12
+ if ( typeof require !== 'undefined' ) {
7
13
// Test that globalThis.require is not defined by any side effects of the profiling
8
14
// https://github.com/getsentry/sentry-javascript/issues/13662
9
15
throw new Error (
10
16
`globalThis.require should not be defined, check that profiling integration is not defining it, received: ` +
11
- typeof globalThis . require ,
17
+ typeof require ,
12
18
) ;
13
19
}
14
20
}
15
21
16
- import * as Sentry from '@sentry/node' ;
17
- import { nodeProfilingIntegration } from '@sentry/profiling-node' ;
18
- const wait = ms => new Promise ( resolve => setTimeout ( resolve , ms ) ) ;
19
22
20
23
Sentry . init ( {
21
24
dsn : 'https://7fa19397baaf433f919fbe02228d5470@o1137848.ingest.sentry.io/6625302' ,
Original file line number Diff line number Diff line change 7
7
"author" : " Sentry" ,
8
8
"license" : " MIT" ,
9
9
"main" : " lib/cjs/index.js" ,
10
+ "module" : " lib/esm/index.js" ,
10
11
"types" : " lib/types/index.d.ts" ,
11
12
"exports" : {
12
13
"./package.json" : " ./package.json" ,
You can’t perform that action at this time.
0 commit comments