Skip to content

Commit 2d54234

Browse files
authored
Merge pull request #17756 from getsentry/prepare-release/10.15.0
meta(changelog): Update changelog for 10.15.0
2 parents d28c34d + 75796c5 commit 2d54234

File tree

190 files changed

+2070
-408
lines changed

Some content is hidden

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

190 files changed

+2070
-408
lines changed

CHANGELOG.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,59 @@
44

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

7+
## 10.15.0
8+
9+
### Important Changes
10+
11+
- **feat(cloudflare): Add honoIntegration with error-filtering function ([#17743](https://github.com/getsentry/sentry-javascript/pull/17743))**
12+
13+
This release adds a `honoIntegration` to `@sentry/cloudflare`, which exposes a `shouldHandleError` function that lets you define which errors in `onError` should be captured.
14+
By default, Sentry captures exceptions with `error.status >= 500 || error.status <= 299`.
15+
16+
The integration is added by default, and it's possible to modify this behavior like this:
17+
18+
```js
19+
integrations: [
20+
honoIntegration({
21+
shouldHandleError: (err) => true; // always capture exceptions in onError
22+
})
23+
]
24+
```
25+
26+
- **feat(node): Add instrumentation for hono handler ([#17428](https://github.com/getsentry/sentry-javascript/pull/17428))**
27+
28+
This PR enhances the Hono integration by adding comprehensive handler instrumentation, error handling capabilities.
29+
30+
- **feat(aws): Enable Lambda extension by default when using the Lamba layer ([#17684](https://github.com/getsentry/sentry-javascript/pull/17684))**
31+
32+
- **feat(browser): Add `setActiveSpanInBrowser` to set an active span in the browser ([#17714](https://github.com/getsentry/sentry-javascript/pull/17714))**
33+
34+
This PR adds a feature to the browser SDKs only: Making an inactive span active. We do this to enable use cases where having a span only being active in the callback is not practical.
35+
36+
### Other Changes
37+
38+
- fix(browser): Improve handling of `0` and `undefined` resource timing values ([#17751](https://github.com/getsentry/sentry-javascript/pull/17751))
39+
- ref(nextjs): Display build compatibility warning for webpack ([#17746](https://github.com/getsentry/sentry-javascript/pull/17746))
40+
41+
<details>
42+
<summary> <strong>Internal Changes</strong> </summary>
43+
44+
- docs: Reword changelog for google gen ai instrumentation ([#17753](https://github.com/getsentry/sentry-javascript/pull/17753))
45+
- build: Add `@typescript-eslint/no-unnecessary-type-assertion` rule ([#17728](https://github.com/getsentry/sentry-javascript/pull/17728))
46+
- build: Update TS target to `es2020` everywhere ([#17709](https://github.com/getsentry/sentry-javascript/pull/17709))
47+
- chore: Add external contributor to CHANGELOG.md ([#17745](https://github.com/getsentry/sentry-javascript/pull/17745))
48+
49+
</details>
50+
51+
Work in this release was contributed by @Karibash. Thank you for your contribution!
52+
753
## 10.14.0
854

955
### Important Changes
1056

1157
- **feat(cloudflare,vercel-edge): Add support for Google Gen AI instrumentation ([#17723](https://github.com/getsentry/sentry-javascript/pull/17723))**
1258

13-
The SDK now automatically instruments Google's Generative AI operations in Cloudflare Workers and Vercel Edge Runtime environments, providing insights into your AI operations.
59+
The SDK now supports manually instrumenting Google's Generative AI operations in Cloudflare Workers and Vercel Edge Runtime environments, providing insights into your AI operations. You can use `const wrappedClient = Sentry.instrumentGoogleGenAIClient(genAiClient)` to get an instrumented client.
1460

1561
### Other Changes
1662

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/fetch/get/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sentryTest('captures Breadcrumb for basic GET request', async ({ getLocalTestUrl
2323
expect(eventData.exception?.values).toHaveLength(1);
2424

2525
expect(eventData?.breadcrumbs?.length).toBe(1);
26-
expect(eventData!.breadcrumbs![0]).toEqual({
26+
expect(eventData.breadcrumbs![0]).toEqual({
2727
timestamp: expect.any(Number),
2828
category: 'fetch',
2929
type: 'http',

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/fetch/getWithRequestObj/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sentryTest('captures Breadcrumb for basic GET request that uses request object',
2323
expect(eventData.exception?.values).toHaveLength(1);
2424

2525
expect(eventData?.breadcrumbs?.length).toBe(1);
26-
expect(eventData!.breadcrumbs![0]).toEqual({
26+
expect(eventData.breadcrumbs![0]).toEqual({
2727
timestamp: expect.any(Number),
2828
category: 'fetch',
2929
type: 'http',

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/fetch/post/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sentryTest('captures Breadcrumb for POST request', async ({ getLocalTestUrl, pag
2323
expect(eventData.exception?.values).toHaveLength(1);
2424

2525
expect(eventData?.breadcrumbs?.length).toBe(1);
26-
expect(eventData!.breadcrumbs![0]).toEqual({
26+
expect(eventData.breadcrumbs![0]).toEqual({
2727
timestamp: expect.any(Number),
2828
category: 'fetch',
2929
type: 'http',

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/fetch/statusCode/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sentryTest('captures Breadcrumb with log level for 4xx response code', async ({
1919
expect(eventData.exception?.values).toHaveLength(1);
2020

2121
expect(eventData?.breadcrumbs?.length).toBe(1);
22-
expect(eventData!.breadcrumbs![0]).toEqual({
22+
expect(eventData.breadcrumbs![0]).toEqual({
2323
timestamp: expect.any(Number),
2424
category: 'fetch',
2525
type: 'http',
@@ -56,7 +56,7 @@ sentryTest('captures Breadcrumb with log level for 5xx response code', async ({
5656
expect(eventData.exception?.values).toHaveLength(1);
5757

5858
expect(eventData?.breadcrumbs?.length).toBe(1);
59-
expect(eventData!.breadcrumbs![0]).toEqual({
59+
expect(eventData.breadcrumbs![0]).toEqual({
6060
timestamp: expect.any(Number),
6161
category: 'fetch',
6262
type: 'http',

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/xhr/get/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sentryTest('captures Breadcrumb for basic GET request', async ({ getLocalTestUrl
2424
expect(eventData.exception?.values).toHaveLength(1);
2525

2626
expect(eventData?.breadcrumbs?.length).toBe(1);
27-
expect(eventData!.breadcrumbs![0]).toEqual({
27+
expect(eventData.breadcrumbs![0]).toEqual({
2828
timestamp: expect.any(Number),
2929
category: 'xhr',
3030
type: 'http',

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/xhr/post/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sentryTest('captures Breadcrumb for POST request', async ({ getLocalTestUrl, pag
2323
expect(eventData.exception?.values).toHaveLength(1);
2424

2525
expect(eventData?.breadcrumbs?.length).toBe(1);
26-
expect(eventData!.breadcrumbs![0]).toEqual({
26+
expect(eventData.breadcrumbs![0]).toEqual({
2727
timestamp: expect.any(Number),
2828
category: 'xhr',
2929
type: 'http',

dev-packages/browser-integration-tests/suites/integrations/Breadcrumbs/xhr/statusCode/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sentryTest('captures Breadcrumb with log level for 4xx response code', async ({
1919
expect(eventData.exception?.values).toHaveLength(1);
2020

2121
expect(eventData?.breadcrumbs?.length).toBe(1);
22-
expect(eventData!.breadcrumbs![0]).toEqual({
22+
expect(eventData.breadcrumbs![0]).toEqual({
2323
timestamp: expect.any(Number),
2424
category: 'xhr',
2525
type: 'http',
@@ -56,7 +56,7 @@ sentryTest('captures Breadcrumb with log level for 5xx response code', async ({
5656
expect(eventData.exception?.values).toHaveLength(1);
5757

5858
expect(eventData?.breadcrumbs?.length).toBe(1);
59-
expect(eventData!.breadcrumbs![0]).toEqual({
59+
expect(eventData.breadcrumbs![0]).toEqual({
6060
timestamp: expect.any(Number),
6161
category: 'xhr',
6262
type: 'http',

dev-packages/browser-integration-tests/suites/integrations/graphqlClient/fetch/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ sentryTest('should update breadcrumbs for GraphQL fetch requests', async ({ getL
8686

8787
expect(eventData?.breadcrumbs?.length).toBe(1);
8888

89-
expect(eventData!.breadcrumbs![0]).toEqual({
89+
expect(eventData.breadcrumbs![0]).toEqual({
9090
timestamp: expect.any(Number),
9191
category: 'fetch',
9292
type: 'http',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ sentryTest('should update breadcrumbs for GraphQL XHR requests', async ({ getLoc
8686

8787
expect(eventData?.breadcrumbs?.length).toBe(1);
8888

89-
expect(eventData!.breadcrumbs![0]).toEqual({
89+
expect(eventData.breadcrumbs![0]).toEqual({
9090
timestamp: expect.any(Number),
9191
category: 'xhr',
9292
type: 'http',

0 commit comments

Comments
 (0)