Skip to content

Commit a74fe81

Browse files
authored
Merge pull request #8941 from getsentry/prepare-release/7.67.0
meta: Update CHANGELOG for 7.67.0
2 parents 9f190f8 + 09f7f7e commit a74fe81

File tree

144 files changed

+1954
-803
lines changed

Some content is hidden

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

144 files changed

+1954
-803
lines changed

CHANGELOG.md

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

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

7+
## 7.67.0
8+
9+
### Important Changes
10+
11+
- **feat: Mark errors caught by the SDK as unhandled**
12+
- feat(browser): Mark errors caught from `TryCatch` integration as unhandled (#8890)
13+
- feat(integrations): Mark errors caught from `HttpClient` and `CaptureConsole` integrations as unhandled (#8891)
14+
- feat(nextjs): Mark errors caught from NextJS wrappers as unhandled (#8893)
15+
- feat(react): Mark errors captured from ErrorBoundary as unhandled (#8914)
16+
- feat(remix): Add debugid injection and map deletion to sourcemaps script (#8814)
17+
- feat(remix): Mark errors caught from Remix instrumentation as unhandled (#8894)
18+
- feat(serverless): Mark errors caught in Serverless handlers as unhandled (#8907)
19+
- feat(vue): Mark errors caught by Vue wrappers as unhandled (#8905)
20+
21+
This release fixes inconsistent behaviour of when our SDKs classify captured errors as unhandled.
22+
Previously, some of our instrumentations correctly set unhandled, while others set handled.
23+
Going forward, all errors caught automatically from our SDKs will be marked as unhandled.
24+
If you manually capture errors (e.g. by calling `Sentry.captureException`), your errors will continue to be reported as handled.
25+
26+
This change might lead to a decrease in reported crash-free sessions and consequently in your release health score.
27+
If you have concerns about this, feel free to open an issue.
28+
29+
### Other Changes
30+
31+
- feat(node-experimental): Implement new performance APIs (#8911)
32+
- feat(node-experimental): Sync OTEL context with Sentry AsyncContext (#8797)
33+
- feat(replay): Allow to configure `maxReplayDuration` (#8769)
34+
- fix(browser): Add replay and profiling options to `BrowserClientOptions` (#8921)
35+
- fix(browser): Check for existence of instrumentation targets (#8939)
36+
- fix(nextjs): Don't re-export default in route handlers (#8924)
37+
- fix(node): Improve mysql integration (#8923)
38+
- fix(remix): Guard against missing default export for server instrument (#8909)
39+
- ref(browser): Deprecate top-level `wrap` function (#8927)
40+
- ref(node-otel): Avoid exporting internals & refactor attribute adding (#8920)
41+
42+
Work in this release contributed by @SorsOps. Thank you for your contribution!
43+
744
## 7.66.0
845

946
- fix: Defer tracing decision to downstream SDKs when using SDK without performance (#8839)

packages/browser-integration-tests/suites/integrations/httpclient/axios/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sentryTest(
3838
value: 'HTTP Client Error with status code: 500',
3939
mechanism: {
4040
type: 'http.client',
41-
handled: true,
41+
handled: false,
4242
},
4343
},
4444
],

packages/browser-integration-tests/suites/integrations/httpclient/fetch/simple/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sentryTest(
3838
value: 'HTTP Client Error with status code: 500',
3939
mechanism: {
4040
type: 'http.client',
41-
handled: true,
41+
handled: false,
4242
},
4343
},
4444
],

packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequest/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ sentryTest('works with a Request passed in', async ({ getLocalTestPath, page })
3636
value: 'HTTP Client Error with status code: 500',
3737
mechanism: {
3838
type: 'http.client',
39-
handled: true,
39+
handled: false,
4040
},
4141
},
4242
],

packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequestAndBodyAndOptions/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sentryTest(
3838
value: 'HTTP Client Error with status code: 500',
3939
mechanism: {
4040
type: 'http.client',
41-
handled: true,
41+
handled: false,
4242
},
4343
},
4444
],

packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequestAndOptions/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ sentryTest('works with a Request (without body) & options passed in', async ({ g
3636
value: 'HTTP Client Error with status code: 500',
3737
mechanism: {
3838
type: 'http.client',
39-
handled: true,
39+
handled: false,
4040
},
4141
},
4242
],

packages/browser-integration-tests/suites/integrations/httpclient/xhr/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sentryTest(
3838
value: 'HTTP Client Error with status code: 500',
3939
mechanism: {
4040
type: 'http.client',
41-
handled: true,
41+
handled: false,
4242
},
4343
},
4444
],
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import * as Sentry from '@sentry/browser';
2+
3+
window.Sentry = Sentry;
4+
5+
Sentry.init({
6+
dsn: 'https://[email protected]/1337',
7+
debug: true,
8+
});
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/* eslint-disable no-console */
2+
import type { ConsoleMessage } from '@playwright/test';
3+
import { expect } from '@playwright/test';
4+
5+
import { sentryTest } from '../../../utils/fixtures';
6+
7+
sentryTest('logs debug messages correctly', async ({ getLocalTestUrl, page }) => {
8+
const bundleKey = process.env.PW_BUNDLE || '';
9+
const hasDebug = !bundleKey.includes('_min');
10+
11+
const url = await getLocalTestUrl({ testDir: __dirname });
12+
13+
const consoleMessages: string[] = [];
14+
15+
page.on('console', (msg: ConsoleMessage) => {
16+
consoleMessages.push(msg.text());
17+
});
18+
19+
await page.goto(url);
20+
21+
await page.evaluate(() => console.log('test log'));
22+
23+
expect(consoleMessages).toEqual(
24+
hasDebug
25+
? [
26+
'Sentry Logger [log]: Integration installed: InboundFilters',
27+
'Sentry Logger [log]: Integration installed: FunctionToString',
28+
'Sentry Logger [log]: Integration installed: TryCatch',
29+
'Sentry Logger [log]: Integration installed: Breadcrumbs',
30+
'Sentry Logger [log]: Global Handler attached: onerror',
31+
'Sentry Logger [log]: Global Handler attached: onunhandledrejection',
32+
'Sentry Logger [log]: Integration installed: GlobalHandlers',
33+
'Sentry Logger [log]: Integration installed: LinkedErrors',
34+
'Sentry Logger [log]: Integration installed: Dedupe',
35+
'Sentry Logger [log]: Integration installed: HttpContext',
36+
'Sentry Logger [warn]: Discarded session because of missing or non-string release',
37+
'test log',
38+
]
39+
: ['[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.', 'test log'],
40+
);
41+
});

packages/browser-integration-tests/suites/public-api/instrumentation/eventListener/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sentryTest(
1717
value: 'event_listener_error',
1818
mechanism: {
1919
type: 'instrument',
20-
handled: true,
20+
handled: false,
2121
},
2222
stacktrace: {
2323
frames: expect.any(Array),

0 commit comments

Comments
 (0)