Skip to content

WIP hono integration - #24371

Draft
mydea wants to merge 5 commits into
developfrom
feat/hono-server-utils-integration
Draft

WIP hono integration#24371
mydea wants to merge 5 commits into
developfrom
feat/hono-server-utils-integration

Conversation

@mydea

@mydea mydea commented Sep 14, 2026

Copy link
Copy Markdown
Member

TODO...

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread packages/server-utils/src/integrations/hono/applyPatches.ts
Comment thread packages/server-utils/src/integrations/hono/index.ts
Comment thread packages/server-utils/src/integrations/index.ts
Comment thread packages/server-utils/src/integrations/hono/createHonoMiddleware.ts Outdated
@github-actions

github-actions Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.96 kB - -
@sentry/browser - with treeshaking flags 27.26 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.15 kB - -
@sentry/browser (incl. Tracing) 50.51 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 50.52 kB - -
@sentry/browser (incl. Tracing, Profiling) 53.5 kB - -
@sentry/browser (incl. Tracing, Replay) 90.07 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.16 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 94.77 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 107.73 kB - -
@sentry/browser (incl. Feedback) 46.46 kB - -
@sentry/browser (incl. sendFeedback) 34.01 kB - -
@sentry/browser (incl. FeedbackAsync) 39.12 kB - -
@sentry/browser (incl. Metrics) 29.98 kB - -
@sentry/browser (incl. Logs) 30.24 kB - -
@sentry/browser (incl. Metrics & Logs) 30.91 kB - -
@sentry/react 30.72 kB - -
@sentry/react (incl. Tracing) 52.81 kB - -
@sentry/vue 36.2 kB - -
@sentry/vue (incl. Tracing) 52.76 kB - -
@sentry/svelte 28.98 kB - -
CDN Bundle 30.7 kB - -
CDN Bundle (incl. Tracing) 51.01 kB - -
CDN Bundle (incl. Logs, Metrics) 32.98 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 52.99 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.67 kB - -
CDN Bundle (incl. Tracing, Replay) 88.56 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 90.53 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 94.64 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 96.63 kB - -
CDN Bundle - uncompressed 90.83 kB - -
CDN Bundle (incl. Tracing) - uncompressed 152.33 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.41 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 158.29 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 226.82 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 271.9 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 277.85 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 285.6 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 291.54 kB - -
@sentry/nextjs (client) 55.13 kB - -
@sentry/sveltekit (client) 50.93 kB - -
@sentry/core/server 37.13 kB - -
@sentry/core/browser 13.66 kB - -
@sentry/node 132.34 kB +1.88% +2.43 kB 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.88 kB +0.06% +41 B 🔺
@sentry/node - without tracing 91.83 kB +2.51% +2.25 kB 🔺
@sentry/node - without channel injection 111.18 kB +2.2% +2.38 kB 🔺
@sentry/aws-serverless 100.11 kB +2.35% +2.29 kB 🔺
@sentry/cloudflare (withSentry) - minified 203.36 kB - -
@sentry/cloudflare (withSentry) 506.44 kB - -

View base workflow run

@mydea
mydea force-pushed the feat/hono-server-utils-integration branch from 7b5f046 to 1e9f2bd Compare September 14, 2026 14:40

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 4 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1e9f2bd. Configure here.

"test:assert:node": "RUNTIME=node pnpm test",
"test:assert:bun": "RUNTIME=bun bun run build.ts &&pnpm test",
"test:assert:deno": "RUNTIME=deno pnpm test",
"test:assert:cloudflare": "RUNTIME=cloudflare vite build && pnpm test"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cloudflare tests miss Vite instrumentation

High Severity

The Cloudflare variant runs vite build then starts wrangler dev, but wrangler.jsonc still points main at src/entry.cloudflare.ts. Wrangler therefore serves the untransformed source, so sentryCloudflareVitePlugin never wraps the app or injects orchestrion channels. Auto-instrumentation on Cloudflare is not actually exercised.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1e9f2bd. Configure here.

@@ -1,33 +1,38 @@
{
"name": "hono-4",
"name": "hono-4 (node)",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invalid hono-4 package name

Medium Severity

The package name was changed from hono-4 to hono-4 (node), which is not a valid npm name (spaces/parentheses). It looks like the node variant label was pasted into name while the node variant was dropped from sentryTest.variants. That can break workspace install and makes the default (node) matrix job unlabeled.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1e9f2bd. Configure here.

}

expect(errorEventOccurred).toBe(false);
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RUNTIME branches inside single tests

Low Severity

Several new tests branch on RUNTIME (Cloudflare vs Node/Bun/Deno) inside a single test(), including different span predicates and skipped assertions. The review guidelines ask to split those paths so each runtime’s expectations fail independently rather than hiding behind an if.

Additional Locations (2)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 1e9f2bd. Configure here.

const INTEGRATION_NAME = 'Hono' as const;

// oxlint-disable-next-line typescript/no-explicit-any
type HonoAny = Hono<any>;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unguarded any in Hono types

Low Severity

New SDK source uses Hono&lt;any&gt; with only an oxlint disable and no comment explaining why a safer type is impossible. The review guidelines require that explanation on every new any.

Additional Locations (2)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 1e9f2bd. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant