Skip to content

Commit 0ccf73a

Browse files
committed
reverting to commit 22b5cbf
1 parent 37d759e commit 0ccf73a

File tree

76 files changed

+666
-613
lines changed

Some content is hidden

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

76 files changed

+666
-613
lines changed

CHANGELOG.md

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,6 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7-
## 7.72.0
8-
9-
### Important Changes
10-
11-
- **feat(node): App Not Responding with stack traces (#9079)**
12-
13-
This release introduces support for Application Not Responding (ANR) errors for Node.js applications.
14-
These errors are triggered when the Node.js main thread event loop of an application is blocked for more than five seconds.
15-
The Node SDK reports ANR errors as Sentry events and can optionally attach a stacktrace of the blocking code to the ANR event.
16-
17-
To enable ANR detection, import and use the `enableANRDetection` function from the `@sentry/node` package before you run the rest of your application code.
18-
Any event loop blocking before calling `enableANRDetection` will not be detected by the SDK.
19-
20-
Example (ESM):
21-
22-
```ts
23-
import * as Sentry from "@sentry/node";
24-
25-
Sentry.init({
26-
dsn: "___PUBLIC_DSN___",
27-
tracesSampleRate: 1.0,
28-
});
29-
30-
await Sentry.enableANRDetection({ captureStackTrace: true });
31-
// Function that runs your app
32-
runApp();
33-
```
34-
35-
Example (CJS):
36-
37-
```ts
38-
const Sentry = require("@sentry/node");
39-
40-
Sentry.init({
41-
dsn: "___PUBLIC_DSN___",
42-
tracesSampleRate: 1.0,
43-
});
44-
45-
Sentry.enableANRDetection({ captureStackTrace: true }).then(() => {
46-
// Function that runs your app
47-
runApp();
48-
});
49-
```
50-
51-
### Other Changes
52-
53-
- fix(nextjs): Filter `RequestAsyncStorage` locations by locations that webpack will resolve (#9114)
54-
- fix(replay): Ensure `replay_id` is not captured when session is expired (#9109)
55-
567
## 7.71.0
578

589
- feat(bun): Instrument Bun.serve (#9080)

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "7.72.0",
3+
"version": "7.71.0",
44
"npmClient": "yarn"
55
}

packages/angular-ivy/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/angular-ivy",
3-
"version": "7.72.0",
3+
"version": "7.71.0",
44
"description": "Official Sentry SDK for Angular with full Ivy Support",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular-ivy",
@@ -21,9 +21,9 @@
2121
"rxjs": "^6.5.5 || ^7.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "7.72.0",
25-
"@sentry/types": "7.72.0",
26-
"@sentry/utils": "7.72.0",
24+
"@sentry/browser": "7.71.0",
25+
"@sentry/types": "7.71.0",
26+
"@sentry/utils": "7.71.0",
2727
"tslib": "^2.4.1"
2828
},
2929
"devDependencies": {

packages/angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/angular",
3-
"version": "7.72.0",
3+
"version": "7.71.0",
44
"description": "Official Sentry SDK for Angular",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
@@ -21,9 +21,9 @@
2121
"rxjs": "^6.5.5 || ^7.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "7.72.0",
25-
"@sentry/types": "7.72.0",
26-
"@sentry/utils": "7.72.0",
24+
"@sentry/browser": "7.71.0",
25+
"@sentry/types": "7.71.0",
26+
"@sentry/utils": "7.71.0",
2727
"tslib": "^2.4.1"
2828
},
2929
"devDependencies": {

packages/browser-integration-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "7.72.0",
3+
"version": "7.71.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {

packages/browser-integration-tests/suites/replay/bufferMode/test.ts

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@ sentryTest(
8484
await reqErrorPromise;
8585
expect(callsToSentry).toEqual(2);
8686

87-
const [req0] = await Promise.all([
88-
reqPromise0,
89-
page.evaluate(async () => {
90-
const replayIntegration = (window as unknown as Window & { Replay: Replay }).Replay;
91-
await replayIntegration.flush();
92-
}),
93-
]);
87+
await page.evaluate(async () => {
88+
const replayIntegration = (window as unknown as Window & { Replay: Replay }).Replay;
89+
await replayIntegration.flush();
90+
});
91+
92+
const req0 = await reqPromise0;
9493

9594
// 2 errors, 1 flush
9695
await reqErrorPromise;
@@ -227,13 +226,12 @@ sentryTest(
227226
await reqErrorPromise;
228227
expect(callsToSentry).toEqual(2);
229228

230-
const [req0] = await Promise.all([
231-
reqPromise0,
232-
page.evaluate(async () => {
233-
const replayIntegration = (window as unknown as Window & { Replay: Replay }).Replay;
234-
await replayIntegration.flush({ continueRecording: false });
235-
}),
236-
]);
229+
await page.evaluate(async () => {
230+
const replayIntegration = (window as unknown as Window & { Replay: Replay }).Replay;
231+
await replayIntegration.flush({ continueRecording: false });
232+
});
233+
234+
const req0 = await reqPromise0;
237235

238236
// 2 errors, 1 flush
239237
await reqErrorPromise;
@@ -348,12 +346,9 @@ sentryTest(
348346

349347
// Error sample rate is now at 1.0, this error should create a replay
350348
const reqErrorPromise1 = waitForErrorRequest(page);
351-
const [req0] = await Promise.all([
352-
// 1 unsampled error, 1 sampled error -> 1 flush
353-
reqPromise0,
354-
page.click('#error2'),
355-
]);
356-
349+
await page.click('#error2');
350+
// 1 unsampled error, 1 sampled error -> 1 flush
351+
const req0 = await reqPromise0;
357352
const reqError1 = await reqErrorPromise1;
358353
const errorEvent1 = envelopeRequestParser(reqError1);
359354
expect(callsToSentry).toEqual(3);

packages/browser-integration-tests/suites/replay/captureConsoleLog/test.ts

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ sentryTest('should capture console messages in replay', async ({ getLocalTestPat
1010
sentryTest.skip();
1111
}
1212

13+
const reqPromise0 = waitForReplayRequest(page, 0);
14+
1315
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
1416
return route.fulfill({
1517
status: 200,
@@ -18,11 +20,10 @@ sentryTest('should capture console messages in replay', async ({ getLocalTestPat
1820
});
1921
});
2022

21-
const reqPromise0 = waitForReplayRequest(page, 0);
22-
2323
const url = await getLocalTestPath({ testDir: __dirname });
2424

25-
await Promise.all([page.goto(url), reqPromise0]);
25+
await page.goto(url);
26+
await reqPromise0;
2627

2728
const reqPromise1 = waitForReplayRequest(
2829
page,
@@ -37,10 +38,11 @@ sentryTest('should capture console messages in replay', async ({ getLocalTestPat
3738
await page.click('[data-log]');
3839

3940
// Sometimes this doesn't seem to trigger, so we trigger it twice to be sure...
40-
const [req1] = await Promise.all([reqPromise1, page.click('[data-log]')]);
41+
await page.click('[data-log]');
42+
4143
await forceFlushReplay();
4244

43-
const { breadcrumbs } = getCustomRecordingEvents(req1);
45+
const { breadcrumbs } = getCustomRecordingEvents(await reqPromise1);
4446

4547
expect(breadcrumbs.filter(breadcrumb => breadcrumb.category === 'console')).toEqual(
4648
expect.arrayContaining([
@@ -63,6 +65,8 @@ sentryTest('should capture very large console logs', async ({ getLocalTestPath,
6365
sentryTest.skip();
6466
}
6567

68+
const reqPromise0 = waitForReplayRequest(page, 0);
69+
6670
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
6771
return route.fulfill({
6872
status: 200,
@@ -71,11 +75,10 @@ sentryTest('should capture very large console logs', async ({ getLocalTestPath,
7175
});
7276
});
7377

74-
const reqPromise0 = waitForReplayRequest(page, 0);
75-
7678
const url = await getLocalTestPath({ testDir: __dirname });
7779

78-
await Promise.all([page.goto(url), reqPromise0]);
80+
await page.goto(url);
81+
await reqPromise0;
7982

8083
const reqPromise1 = waitForReplayRequest(
8184
page,
@@ -87,10 +90,14 @@ sentryTest('should capture very large console logs', async ({ getLocalTestPath,
8790
5_000,
8891
);
8992

90-
const [req1] = await Promise.all([reqPromise1, page.click('[data-log-large]')]);
93+
await page.click('[data-log-large]');
94+
95+
// Sometimes this doesn't seem to trigger, so we trigger it twice to be sure...
96+
await page.click('[data-log-large]');
97+
9198
await forceFlushReplay();
9299

93-
const { breadcrumbs } = getCustomRecordingEvents(req1);
100+
const { breadcrumbs } = getCustomRecordingEvents(await reqPromise1);
94101

95102
expect(breadcrumbs.filter(breadcrumb => breadcrumb.category === 'console')).toEqual(
96103
expect.arrayContaining([

packages/browser-integration-tests/suites/replay/errors/errorMode/test.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,26 @@ sentryTest(
5050

5151
const url = await getLocalTestPath({ testDir: __dirname });
5252

53-
await Promise.all([
54-
page.goto(url),
55-
page.click('#go-background'),
56-
new Promise(resolve => setTimeout(resolve, 1000)),
57-
]);
53+
await page.goto(url);
54+
await page.click('#go-background');
55+
await new Promise(resolve => setTimeout(resolve, 1000));
5856

5957
expect(callsToSentry).toEqual(0);
6058

61-
const [req0] = await Promise.all([reqPromise0, page.click('#error')]);
59+
await page.click('#error');
60+
const req0 = await reqPromise0;
6261

6362
expect(callsToSentry).toEqual(2); // 1 error, 1 replay event
6463

65-
const [req1] = await Promise.all([reqPromise1, page.click('#go-background'), reqErrorPromise]);
64+
await page.click('#go-background');
65+
const req1 = await reqPromise1;
66+
await reqErrorPromise;
6667

6768
expect(callsToSentry).toEqual(3); // 1 error, 2 replay events
6869

6970
await page.click('#log');
70-
71-
const [req2] = await Promise.all([reqPromise2, page.click('#go-background')]);
71+
await page.click('#go-background');
72+
const req2 = await reqPromise2;
7273

7374
const event0 = getReplayEvent(req0);
7475
const content0 = getReplayRecordingContent(req0);

packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/test.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ sentryTest(
1010
sentryTest.skip();
1111
}
1212

13+
const reqPromise0 = waitForReplayRequest(page, 0);
14+
1315
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
1416
return route.fulfill({
1517
status: 200,
@@ -20,17 +22,26 @@ sentryTest(
2022

2123
const url = await getLocalTestPath({ testDir: __dirname });
2224

23-
const [res0] = await Promise.all([waitForReplayRequest(page, 0), page.goto(url)]);
24-
await forceFlushReplay();
25+
await page.goto(url);
26+
const res0 = await reqPromise0;
27+
28+
const reqPromise1 = waitForReplayRequest(page);
2529

26-
const [res1] = await Promise.all([waitForReplayRequest(page), page.click('#button-add')]);
30+
void page.click('#button-add');
2731
await forceFlushReplay();
32+
const res1 = await reqPromise1;
2833

29-
const [res2] = await Promise.all([waitForReplayRequest(page), page.click('#button-modify')]);
34+
const reqPromise2 = waitForReplayRequest(page);
35+
36+
void page.click('#button-modify');
3037
await forceFlushReplay();
38+
const res2 = await reqPromise2;
39+
40+
const reqPromise3 = waitForReplayRequest(page);
3141

32-
const [res3] = await Promise.all([waitForReplayRequest(page), page.click('#button-remove')]);
42+
void page.click('#button-remove');
3343
await forceFlushReplay();
44+
const res3 = await reqPromise3;
3445

3546
const replayData0 = getReplayRecordingContent(res0);
3647
const replayData1 = getReplayRecordingContent(res1);

packages/browser-integration-tests/suites/replay/largeMutations/mutationLimit/test.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ sentryTest(
1515
sentryTest.skip();
1616
}
1717

18+
const reqPromise0 = waitForReplayRequest(page, 0);
19+
1820
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
1921
return route.fulfill({
2022
status: 200,
@@ -23,24 +25,23 @@ sentryTest(
2325
});
2426
});
2527

26-
const reqPromise0 = waitForReplayRequest(page, 0);
27-
2828
const url = await getLocalTestPath({ testDir: __dirname });
2929

30-
const [res0] = await Promise.all([reqPromise0, page.goto(url)]);
31-
await forceFlushReplay();
30+
await page.goto(url);
31+
const res0 = await reqPromise0;
3232

3333
const reqPromise1 = waitForReplayRequest(page);
3434

35-
const [res1] = await Promise.all([reqPromise1, page.click('#button-add')]);
35+
void page.click('#button-add');
3636
await forceFlushReplay();
37+
const res1 = await reqPromise1;
3738

3839
// replay should be stopped due to mutation limit
3940
let replay = await getReplaySnapshot(page);
4041
expect(replay.session).toBe(undefined);
4142
expect(replay._isEnabled).toBe(false);
4243

43-
await page.click('#button-modify');
44+
void page.click('#button-modify');
4445
await forceFlushReplay();
4546

4647
await page.click('#button-remove');

0 commit comments

Comments
 (0)