Skip to content

fix(node-native): Don't drop breadcrumbs from event loop block events#22322

Merged
timfish merged 1 commit into
developfrom
timfish/fix/event-loop-block-breadcrumbs
Jul 16, 2026
Merged

fix(node-native): Don't drop breadcrumbs from event loop block events#22322
timfish merged 1 commit into
developfrom
timfish/fix/event-loop-block-breadcrumbs

Conversation

@timfish

@timfish timfish commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

The watchdog reconstructed the poll state scope via Scope.update(), which only handles ScopeContext fields and silently discards breadcrumbs. Adds a hydrateScope helper that rehydrates a proper Scope from the JSON-serialized ScopeData, carrying breadcrumbs over explicitly. Attachments are deliberately not restored since their binary data does not survive JSON serialization.

The watchdog reconstructed the poll state scope via Scope.update(),
which only handles ScopeContext fields and silently discards
breadcrumbs. Add a hydrateScope helper that rehydrates a proper Scope
from the JSON-serialized ScopeData, carrying breadcrumbs over
explicitly. Attachments are deliberately not restored since their
binary data does not survive JSON serialization.

Fixes #22314
@timfish
timfish requested a review from a team as a code owner July 16, 2026 11:05
@timfish
timfish requested review from andreiborza, isaacs and mydea and removed request for a team July 16, 2026 11:05
@timfish
timfish merged commit 9f594dd into develop Jul 16, 2026
56 checks passed
@timfish
timfish deleted the timfish/fix/event-loop-block-breadcrumbs branch July 16, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eventLoopBlockIntegration: breadcrumbs are dropped from EventLoopBlocked events (Scope.update() ignores the breadcrumbs field)

2 participants