Elysia on Node uses Bun's fetch transport #24048
Copy link
Copy link
Closed
Labels
Description
elysia/src/sdk.ts:51 sets options.transport = makeFetchTransport from @sentry/bun. On Node that replaces makeNodeTransport, losing proxy support (http_proxy/HTTPS_PROXY), custom CA / NODE_EXTRA_CA_CERTS handling, and keep-alive agent tuning. Anyone running Elysia on Node behind a corporate proxy loses all events.
Work item. Pick the transport by runtime, the way getRuntime() already does. This and #24047 both stem from @sentry/elysia depending only on @sentry/bun while advertising Node support; #24045 is unrelated to that and would happen just as readily if Elysia wrapped @sentry/node. Worth a short design note on whether the dependency should be conditional.
Reactions are currently unavailable
Activity
linear-code commentedon Sep 4, 2026
JS-3583
fix(elysia): use Node transport on Node runtimes (getsentry#25015)
github-actions commentedon Oct 23, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #25015, which was included in the 11.9.0 release.