Skip to content

Commit 8341c65

Browse files
authored
Merge branch 'develop' into feat/growthbook-integration
2 parents 94bb650 + be0c75d commit 8341c65

File tree

71 files changed

+509
-291
lines changed

Some content is hidden

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

71 files changed

+509
-291
lines changed

CHANGELOG.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,50 @@
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+
751
Work in this release was contributed by @Karibash. Thank you for your contribution!
852

953
## 10.14.0
@@ -12,7 +56,7 @@ Work in this release was contributed by @Karibash. Thank you for your contributi
1256

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

15-
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.
1660

1761
### Other Changes
1862

dev-packages/browser-integration-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "10.14.0",
3+
"version": "10.15.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -43,7 +43,7 @@
4343
"@babel/preset-typescript": "^7.16.7",
4444
"@playwright/test": "~1.53.2",
4545
"@sentry-internal/rrweb": "2.34.0",
46-
"@sentry/browser": "10.14.0",
46+
"@sentry/browser": "10.15.0",
4747
"@supabase/supabase-js": "2.49.3",
4848
"axios": "1.8.2",
4949
"babel-loader": "^8.2.2",

dev-packages/bundle-analyzer-scenarios/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/bundle-analyzer-scenarios",
3-
"version": "10.14.0",
3+
"version": "10.15.0",
44
"description": "Scenarios to test bundle analysis with",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",

dev-packages/clear-cache-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/clear-cache-gh-action",
33
"description": "An internal Github Action to clear GitHub caches.",
4-
"version": "10.14.0",
4+
"version": "10.15.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/cloudflare-integration-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/cloudflare-integration-tests",
3-
"version": "10.14.0",
3+
"version": "10.15.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -13,11 +13,11 @@
1313
"test:watch": "yarn test --watch"
1414
},
1515
"dependencies": {
16-
"@sentry/cloudflare": "10.14.0"
16+
"@sentry/cloudflare": "10.15.0"
1717
},
1818
"devDependencies": {
1919
"@cloudflare/workers-types": "^4.20250922.0",
20-
"@sentry-internal/test-utils": "10.14.0",
20+
"@sentry-internal/test-utils": "10.15.0",
2121
"vitest": "^3.2.4",
2222
"wrangler": "4.22.0"
2323
},

dev-packages/e2e-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/e2e-tests",
3-
"version": "10.14.0",
3+
"version": "10.15.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

dev-packages/e2e-tests/test-applications/aws-serverless/src/lambda-functions-layer/ExperimentalExtension/index.mjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

dev-packages/e2e-tests/test-applications/aws-serverless/tests/layer.test.ts

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -242,52 +242,4 @@ test.describe('Lambda layer', () => {
242242
}),
243243
);
244244
});
245-
246-
test('experimental extension works', async ({ lambdaClient }) => {
247-
const transactionEventPromise = waitForTransaction('aws-serverless-lambda-sam', transactionEvent => {
248-
return transactionEvent?.transaction === 'LayerExperimentalExtension';
249-
});
250-
251-
await lambdaClient.send(
252-
new InvokeCommand({
253-
FunctionName: 'LayerExperimentalExtension',
254-
Payload: JSON.stringify({}),
255-
}),
256-
);
257-
258-
const transactionEvent = await transactionEventPromise;
259-
260-
expect(transactionEvent.transaction).toEqual('LayerExperimentalExtension');
261-
expect(transactionEvent.contexts?.trace).toEqual({
262-
data: {
263-
'sentry.sample_rate': 1,
264-
'sentry.source': 'custom',
265-
'sentry.origin': 'auto.otel.aws-lambda',
266-
'sentry.op': 'function.aws.lambda',
267-
'cloud.account.id': '012345678912',
268-
'faas.execution': expect.any(String),
269-
'faas.id': 'arn:aws:lambda:us-east-1:012345678912:function:LayerExperimentalExtension',
270-
'faas.coldstart': true,
271-
'otel.kind': 'SERVER',
272-
},
273-
op: 'function.aws.lambda',
274-
origin: 'auto.otel.aws-lambda',
275-
span_id: expect.stringMatching(/[a-f0-9]{16}/),
276-
status: 'ok',
277-
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
278-
});
279-
280-
expect(transactionEvent.spans).toHaveLength(1);
281-
282-
expect(transactionEvent.spans).toContainEqual(
283-
expect.objectContaining({
284-
data: expect.objectContaining({
285-
'sentry.op': 'test',
286-
'sentry.origin': 'manual',
287-
}),
288-
description: 'manual-span',
289-
op: 'test',
290-
}),
291-
);
292-
});
293245
});

dev-packages/external-contributor-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/external-contributor-gh-action",
33
"description": "An internal Github Action to add external contributors to the CHANGELOG.md file.",
4-
"version": "10.14.0",
4+
"version": "10.15.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/node-core-integration-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-core-integration-tests",
3-
"version": "10.14.0",
3+
"version": "10.15.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -34,8 +34,8 @@
3434
"@opentelemetry/resources": "^2.1.0",
3535
"@opentelemetry/sdk-trace-base": "^2.1.0",
3636
"@opentelemetry/semantic-conventions": "^1.37.0",
37-
"@sentry/core": "10.14.0",
38-
"@sentry/node-core": "10.14.0",
37+
"@sentry/core": "10.15.0",
38+
"@sentry/node-core": "10.15.0",
3939
"body-parser": "^1.20.3",
4040
"cors": "^2.8.5",
4141
"cron": "^3.1.6",

0 commit comments

Comments
 (0)