fix(telemetry): upgrade Sentry SDK to 10.39.0 and remove custom patches#249
Merged
fix(telemetry): upgrade Sentry SDK to 10.39.0 and remove custom patches#249
Conversation
Upstream 10.39.0 fixes all issues we had manually patched: - Timer .unref() calls that prevented CLI from exiting (#19062, #19174) - Bun runtime context override in NodeClient (#19269) Remove the @sentry/core@10.38.0 patch file and the runtime context workaround in telemetry.ts since they are no longer needed.
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Build
Bug Fixes 🐛
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Contributor
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 4126 uncovered lines. Files with missing lines (71)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 68.18% 68.17% -0.01%
==========================================
Files 108 108 —
Lines 12968 12961 -7
Branches 0 0 —
==========================================
+ Hits 8842 8835 -7
- Misses 4126 4126 —
- Partials 0 0 —Generated by Codecov Action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade
@sentry/bunand@sentry/nodefrom 10.38.0 → 10.39.0 and remove all custom patches/workarounds that are now fixed upstream.Changes
patches/@sentry%2Fcore@10.38.0.patch(92 lines) — Added.unref()to timers insetupWeightBasedFlushing,_isClientDoneProcessing, andmakePromiseBufferto prevent the CLI from hanging on exit. Fixed upstream by #19062 and #19174.src/lib/telemetry.ts(14 lines) — Manually overrodeoptions.runtimeafterSentry.init()to report Bun instead of Node.js. Fixed upstream —NodeClientnow usesoptions.runtime || { name: 'node', ... }and@sentry/bunpasses{ name: 'bun', version: Bun.version }. Tracked as #19269.package.json— Bumped both SDK packages to10.39.0and removed@sentry/corefrompatchedDependencies.Verification
bun install, typecheck, lint, and tests all pass cleanlymainare unrelated)