getsentry / getsentry/sentry-javascript

bun: `Bun.serve` spans lack client address and protocol attributes

オープン
#23,886 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Bug Bun javascript Spans
主要言語
TypeScript
スター
8.7k
フォーク
1.8k
平均マージ
1日 17時間
マージ済み PR(30日)
523

説明

Deno sets `client.address`, `client.port` (honoring `x-forwarded-for`) and `network.protocol.name`. Bun sets none. Bun exposes the peer through `server.requestIP(request)`.

**Work item.** Thread the `Server` instance into `wrapRequestHandler` and set the three attributes, gated on `dataCollection.userInfo` the way Deno does.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start at Bun.serve's wrapRequestHandler and compare the existing Deno implementation for client address, port, and network protocol attributes. Inspect Server.requestIP(request) and dataCollection.userInfo, then verify that the three attributes are present only under the same gate used by Deno.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
bun, typescript
領域
observability
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
72/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。