Commit 604b4e6
authored
fix(telemetry): upgrade Sentry SDK to 10.39.0 and remove custom patches (#249)
## Summary
Upgrade `@sentry/bun` and `@sentry/node` from 10.38.0 → 10.39.0 and
remove all custom patches/workarounds that are now fixed upstream.
## Changes
- **Removed `patches/@sentry%2Fcore@10.38.0.patch`** (92 lines) — Added
`.unref()` to timers in `setupWeightBasedFlushing`,
`_isClientDoneProcessing`, and `makePromiseBuffer` to prevent the CLI
from hanging on exit. Fixed upstream by
[#19062](getsentry/sentry-javascript#19062) and
[#19174](getsentry/sentry-javascript#19174).
- **Removed runtime context workaround in `src/lib/telemetry.ts`** (14
lines) — Manually overrode `options.runtime` after `Sentry.init()` to
report Bun instead of Node.js. Fixed upstream — `NodeClient` now uses
`options.runtime || { name: 'node', ... }` and `@sentry/bun` passes `{
name: 'bun', version: Bun.version }`. Tracked as
[#19269](getsentry/sentry-javascript#19269).
- **Updated `package.json`** — Bumped both SDK packages to `10.39.0` and
removed `@sentry/core` from `patchedDependencies`.
## Verification
- Verified all three upstream fixes by reading the 10.39.0 source code
and linked PRs
- `bun install`, typecheck, lint, and tests all pass cleanly
- No new test failures introduced (pre-existing ~95 failures on `main`
are unrelated)1 parent 805804e commit 604b4e6
File tree
4 files changed
+10
-118
lines changed- patches
- src/lib
4 files changed
+10
-118
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
67 | 66 | | |
68 | 67 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 217 | | |
233 | 218 | | |
234 | 219 | | |
| |||
0 commit comments