Skip to content

Commit 7a67ea4

Browse files
s1gr1dnicohrubec
andauthored
feat(hono): Promote @sentry/hono to stable and deprecate honoIntegration (#21208)
Closes #20816 Co-authored-by: Nicolas Hrubec <nicolas.hrubec@outlook.com>
1 parent cead7f9 commit 7a67ea4

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGELOG.md

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

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

7+
- **feat(hono): Promote `@sentry/hono` to stable and deprecate `honoIntegration`**
8+
9+
The `@sentry/hono` SDK is now stable. See the [Sentry Hono SDK docs](https://docs.sentry.io/platforms/javascript/guides/hono/) to get started.
10+
711
- **docs(tanstackstart-react): Promote SDK status to beta ([#21175](https://github.com/getsentry/sentry-javascript/pull/21175))**
812

913
This release promotes the `@sentry/tanstackstart-react` SDK to beta. For details on how to use it, check out the

packages/cloudflare/src/integrations/hono.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ const _honoIntegration = ((options: Partial<Options> = {}) => {
8383
*
8484
* The integration is enabled by default.
8585
*
86+
* @deprecated Use the `@sentry/hono` package instead. The `sentry()` middleware from `@sentry/hono/cloudflare`
87+
* handles error capturing automatically without needing this integration.
88+
*
8689
* @example
8790
* integrations: [
8891
* honoIntegration({

packages/hono/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
</a>
55
</p>
66

7-
# Official Sentry SDK for Hono (BETA)
7+
# Official Sentry SDK for Hono
88

99
[![npm version](https://img.shields.io/npm/v/@sentry/hono.svg)](https://www.npmjs.com/package/@sentry/hono)
1010
[![npm dm](https://img.shields.io/npm/dm/@sentry/hono.svg)](https://www.npmjs.com/package/@sentry/hono)
1111
[![npm dt](https://img.shields.io/npm/dt/@sentry/hono.svg)](https://www.npmjs.com/package/@sentry/hono)
1212

13-
This SDK is compatible with Hono 4+ and is currently in BETA. Beta features are still in progress and may have bugs.
14-
Please reach out on [GitHub](https://github.com/getsentry/sentry-javascript/issues/new/choose) if you have any feedback or concerns.
13+
This SDK is compatible with Hono 4+.
1514

1615
## Links
1716

packages/node/src/integrations/tracing/hono/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ const _honoIntegration = (() => {
7474
*
7575
* For more information, see the [hono documentation](https://docs.sentry.io/platforms/javascript/guides/hono/).
7676
*
77+
* @deprecated Use the `@sentry/hono` package instead. The `sentry()` middleware from `@sentry/hono/node` handles
78+
* tracing and error capturing automatically without needing this integration or `setupHonoErrorHandler`.
79+
*
7780
* @example
7881
* ```javascript
7982
* const Sentry = require('@sentry/node');
@@ -128,6 +131,9 @@ function honoErrorHandler(options?: Partial<HonoHandlerOptions>): MiddlewareHand
128131
* @param app The Hono instances
129132
* @param options Configuration options for the handler
130133
*
134+
* @deprecated Use the `@sentry/hono` package instead. The `sentry()` middleware from `@sentry/hono/node` handles
135+
* error capturing automatically without needing this function or `honoIntegration`.
136+
*
131137
* @example
132138
* ```javascript
133139
* const Sentry = require('@sentry/node');

0 commit comments

Comments
 (0)