Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update readme etc.
  • Loading branch information
s1gr1d committed Feb 4, 2026
commit dc5cfb9dab6750e61f5fe5d2768afc9cff57902f
3 changes: 1 addition & 2 deletions dev-packages/cloudflare-integration-tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// global fetch available in tests in lower Node versions.
"lib": ["ES2020"],
"esModuleInterop": true,
"types": ["@cloudflare/workers-types"],
"moduleResolution": "bundler"
"types": ["@cloudflare/workers-types"]
}
}
19 changes: 19 additions & 0 deletions packages/hono/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,22 @@ Either set the `nodejs_als` or `nodejs_compat` compatibility flags in your `wran
compatibility_flags = ["nodejs_als"]
# compatibility_flags = ["nodejs_compat"]
```

### Initialize Sentry in your Hono app

Initialize the Sentry Hono middleware as early as possible in your app:

```typescript
import { sentry } from '@sentry/hono/cloudflare';

const app = new Hono();

app.use(
'*',
sentry(app, {
dsn: 'your-sentry-dsn',
}),
);

export default app;
```
2 changes: 1 addition & 1 deletion packages/hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"peerDependencies": {
"@cloudflare/workers-types": "^4.x",
"hono": "^4.10.4"
"hono": "^4.x"
},
"peerDependenciesMeta": {
"@cloudflare/workers-types": {
Expand Down
1 change: 0 additions & 1 deletion packages/hono/src/cloudflare/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const sentry = (app: Hono, options: HonoOptions | undefined = {}): Middle
isDebug && debug.log('Initialized Sentry Hono middleware (Cloudflare)');

applySdkMetadata(options, 'hono');

withSentry(() => options, app);

return async (context, next) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/hono/src/shared/middlewareHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { routePath } from 'hono/route';
import { hasFetchEvent } from '../utils/hono-context';

/**
* todo
* Request handler for Hono framework
*/
export function requestHandler(context: Context): void {
const defaultScope = getDefaultIsolationScope();
Expand All @@ -26,7 +26,7 @@ export function requestHandler(context: Context): void {
}

/**
* todo
* Response handler for Hono framework
*/
export function responseHandler(context: Context): void {
const activeSpan = getActiveSpan();
Expand Down
Loading