getsentry / getsentry/sentry-javascript
bun: `Bun.serve` spans lack client address and protocol attributes
- Lingua principale
- TypeScript
- Stelle
- 8.7k
- Fork
- 1.8k
- Merge medio
- 1g 17h
- PR unite (30g)
- 515
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- bun, typescript
- Ambito
- observability
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 72/100