Repository navigation
feat(astro): Use the Bun and Deno integrations when Astro runs on Bun or Deno - #26844
Merged
Merged
Conversation
Contributor
size-limit report 📦Compared: 1b863a9 (PR test merge using develop at 8187094) Against: 8187094 (develop) · base run #67858 ✅ 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. 2 not successful, 81 successful. See the run.
Successful checks
|
JPeer264
force-pushed
the
jp/astro-bun-deno-entries
branch
from
November 25, 2026 08:01
d89233b to
3de0025
Compare
JPeer264
force-pushed
the
jp/astro-bun-deno-entries
branch
from
November 25, 2026 08:13
3de0025 to
0c66a58
Compare
… or Deno On Bun and Deno, @sentry/astro resolved to its Node entry, so outgoing fetch calls had no spans and no trace headers, and on Bun requests were not isolated by the HTTP server integration, unless users added the integrations of @sentry/bun or @sentry/deno by hand. The new bun and deno export conditions load entries that report the runtime and replace the undici fetch integration with the fetch integration of the runtime. On Bun, the entry also adds bunHttpServerIntegration, because Bun does not publish http.server.request.start. Its http.server span is the one the Astro middleware enhances on Node too. @astrojs/node keeps @sentry/astro external, so the runtime resolves these conditions at run time. @sentry/bun and @sentry/deno are optional peer dependencies, like in @sentry/nextjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JPeer264
force-pushed
the
jp/astro-bun-deno-entries
branch
from
November 25, 2026 08:26
0c66a58 to
1d3575f
Compare
JPeer264
marked this pull request as ready for review
November 25, 2026 08:38
javascript-sdk-gitflow
Bot
requested review from
chargome,
nicohrubec and
s1gr1d
November 25, 2026 08:38
s1gr1d
approved these changes
Nov 25, 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.
part of #24840
Description
This adds
bunanddenoexport conditions to@sentry/astro. When an Astro server build runs on Bun or Deno, the SDK now reports that runtime and uses thefetchintegration of@sentry/bunor@sentry/deno. On Bun, it also addsbunHttpServerIntegration.@sentry/bunand@sentry/denoare optional peer dependencies, the same as in@sentry/nextjs.Why
On Bun and Deno,
@sentry/astroloaded its Node entry. Outgoingfetchcalls had no spans and no trace headers, and on Bun the requests were not isolated.