Repository navigation
test(hono): Check the SDK info of each entry in its real runtime - #26712
Merged
Merged
Conversation
The new e2e test in `hono-4-legacy` runs in the Node, Bun and Deno variants against the real `@sentry/hono` entries. It checks the `sdk` info of an error event: the Hono SDK name and packages, and that `Hono` is not in `sdk.integrations`. The runtime SDKs install the Hono integration by default and the `sentry()` middleware instruments Hono itself, so an entry that keeps the default instruments Hono twice. No other test found this. `hono-4-legacy` has no Cloudflare variant in CI, so a unit test checks that the Cloudflare entry removes Hono from the default and the user integrations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
size-limit report 📦Compared: 2e6b842 (PR test merge using develop at ef89ae2) Against: ef89ae2 (develop) · base run #67338 ✅ Baseline matches: this diff contains only this PR's changes.
|
JPeer264
marked this pull request as ready for review
November 20, 2026 19:16
javascript-sdk-gitflow
Bot
requested review from
RulaKhaled,
chargome and
nicohrubec
November 20, 2026 19:17
nicohrubec
approved these changes
Nov 23, 2026
51 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #24050
closes JS-3585
Description
This adds an e2e test to
hono-4-legacythat checks thesdkinfo of an error event in the Node, Bun and Deno variants: the Hono SDK name and packages, and that the defaultHonointegration is not installed. A unit test checks the same filter for the Cloudflare entry, which has no variant there.Why
The runtime SDKs install the Hono integration by default, and the
sentry()middleware instruments Hono itself. No test failed when an entry kept the default integration. The other checks from the issue (ignoreSpans, repeatedinit()) already have unit tests for each runtime.Test decisions
The issue asks for one parameterized unit test. This tests the real entries in their runtimes instead, so no runtime SDK is mocked.