Skip to content

Commit 2108940

Browse files
committed
add changelog entry
1 parent a1b3cf0 commit 2108940

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGELOG.md

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

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

7+
- **feat(cloudflare): Add honoIntegration with error-filtering function ([#17743](https://github.com/getsentry/sentry-javascript/pull/17743))**
8+
9+
This release adds a `honoIntegration` to `@sentry/cloudflare`, which exposes a `shouldHandleError` function that lets you define which errors in `onError` should be captured.
10+
By default, Sentry captures exceptions with `error.status >= 500 || error.status <= 299`.
11+
12+
The integration is added by default, and it's possible to modify this behavior like this:
13+
14+
```js
15+
integrations: [
16+
honoIntegration({
17+
shouldHandleError: (err) => true; // always capture exceptions in onError
18+
})
19+
]
20+
```
21+
722
## 10.13.0
823

924
### Important Changes

0 commit comments

Comments
 (0)