Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Elysia on Node uses Bun's fetch transport

未关闭
#24,048 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
bun, nodejs, typescript

调研方向

从 elysia/src/sdk.ts:51 开始,跟踪 getRuntime() 如何选择 runtime。比较 Node 和 Bun 的 transport 选择,然后检查现有 Node transport 对 proxy、CA 证书和 keep-alive 支持的行为。完成标准是 Elysia 在 Node 上使用合适的 transport,同时不使 Bun 发生回归,并按要求记录依赖和设计方面的影响。

由索引模型根据 Issue 内容生成。

描述

Bug Bun javascript

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 E2 both stem from @sentry/elysia depending only on @sentry/bun while advertising Node support; E1 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.

主要语言
TypeScript
星标
8.7k
派生
1.9k
平均合并
1 天 17 小时
30 天内合并 PR
543

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/sentry-javascript 的其他 Issue

查看 getsentry/sentry-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。