Repository navigation
Conversation
… a Bun app loads With `bun --preload`, `init()` runs before the app loads, so an app built with a Sentry bundler plugin has not set its injection marker yet. With tracing on, the SDK now checks the marker at the first span start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
size-limit report 📦Compared: 08d02b9 (PR test merge using develop at 9517250) Against: 9517250 (develop) · base run #66871 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 4 not successful, 54 successful. See the run.
Successful checks
|
This branch has not been deployed
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.
This fixes a wrong
[Sentry] No diagnostics-channel injection detectedwarning on Bun when the SDK is preloaded withbun --preloadand the app is built with a Sentry bundler plugin, for example a React Router app built with Vite. With tracing on, the SDK now looks for the injection marker at the first span start instead of atinit().Why
init()runs in the preload, before the built app loads and sets the marker. Since #25857, Bun always shows this warning, so these apps got it at every start. The React Router Bun setup page from getsentry/sentry-docs#20724 tells users to ignore it.Known issues