Consider dropping Bun 1.3 support in v12
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- bun, node.js, typescript
- Domínio
- backend, observability
Direção de pesquisa
Start with packages/bun/package.json and .github/workflows/build.yml to review the current Bun minimum and CI matrix. Then check the Bun integration test exclusions and vite.config.mts entries named in the issue. Done means the v12 minimum is Bun 1.4, CI no longer tests 1.3.14, and the Bun 1.3-specific exclusions are removed; this is proposed release policy work and may need maintainer agreement.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Bun 1.3.14 is the oldest Bun version that the SDK supports and tests in CI. On Bun 1.3, @sentry/bun does not instrument outgoing node:http requests. They get no sentry-trace or baggage headers and no spans, so traces break across services. Bun 1.4.0 and later work correctly.
We cannot fix this well on Bun 1.3. I suggest we drop Bun 1.3 in v12 and require Bun 1.4 or later.
Cause
- Bun 1.3 does not publish the
http.client.request.createddiagnostics channel. Bun 1.4.0 does. @sentry/nodedecides to use that channel fromprocess.versions.node. Bun 1.3.14 reports Node 24.3.0, so the SDK subscribes to a channel that never fires.- The fallback in
@sentry/core(client-patch.ts) wrapsClientRequest.prototype._storeHeader. Bun 1.3 uses anotherClientRequestimplementation that has no_storeHeader, so the fallback patches nothing.
Why a fix on Bun 1.3 is not practical
We tested these options on Bun 1.3.14:
- Wrap
ClientRequest.prototype.end: each request has its ownwriteandendmethods, so the request never calls the prototype hook. Also, a request with a streamed body sends its headers at the firstwrite(), beforeend(). - Wrap
http.requestandhttp.geton the module object: only code that calls through the default import orrequire('node:http')gets the wrapper. Named imports (import { request }) and namespace imports (import * as http) keep the original functions.http.getalso does not callhttp.requestinternally, so the wrapper must rewrite the request options before the call.
A fix would be a Bun-1.3-only rewrite of the request options. Named and namespace imports would still not work.
What changes if we drop Bun 1.3
- The minimum Bun version becomes 1.4:
engines.buninpackages/bun/package.json(now>=1.3.14) and the docs. - The CI matrix drops
1.3.14injob_bun_unit_testsandjob_bun_integration_tests(.github/workflows/build.yml). dev-packages/bun-integration-testscan remove the Bun < 1.4 excludes (BUN_BUILD_BEFORE_1_4_EXCLUDE,SENTRY_BUN_BEFORE_1_4_EXCLUDE) andBUN_BEFORE_1_4invite.config.mts. Those excludes also cover two other Bun 1.3 problems: CommonJS bundles oflangchainandlanggraphthrowrequire_ai is not a function, and theproxysuite fails in the@sentry/bunalias preload.
Until then
On Bun 1.3, express/with-http/base is excluded in the bun-build project (#26611). Users on Bun 1.3 who need trace propagation for outgoing node:http requests should upgrade to Bun 1.4 or later.
- Linguagem predominante
- TypeScript
- Estrelas
- 8.8k
- Forks
- 1.9k
- Merge médio
- 1d 8h
- PRs com merge (30d)
- 744
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getsentry/sentry-javascript
-
AWS Lambda Waiting for: Product Owner
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
getsentry/sentry-javascript#26910 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Only create Nuxt database and storage spans when there is a parent spanTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. AbertaImprovement Nuxt
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
getsentry/sentry-javascript#25805 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Only create Cloudflare storage and D1 db spans when there is a parent spanTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. AbertaCloudflare Workers Improvement Spans
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
getsentry/sentry-javascript#25804 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Core Feature: Typescript Meta: Breaking
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
getsentry/sentry-javascript#25286 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
javascript
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
getsentry/sentry-javascript#24200 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de getsentry/sentry-javascript
Issues semelhantes
-
Postgres upgrade golden leaves fixture URL query parameters in the expected output comparisonAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
garrytan/gbrain#10437 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Talvez já em andamento @acmerfight assumiu hoje. Abertauntriaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
earendil-works/pi#12573 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
agentes-chat/agentes-chat#1506 ·
Mantenedores costumam responder em até 1 dia
-
comp/desktop desktop/files os/windows P2 type/perf
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
NousResearch/hermes-agent#160359 ·
Mantenedores costumam responder em até 1 dia
-
Missing repro Platform: Android
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
software-mansion/react-native-reanimated#11554 · 1 comentário ·
Mantenedores costumam responder em até 1 dia