Repository navigation
Conversation
Some SDKs send breadcrumb events without a payload and breadcrumb or span frames without data, even where the SDK types require them. A breadcrumb with no payload threw in hydrateFrames and blanked the whole replay, and a resource span with no data crashed the Network tab. Make data optional on hydrated breadcrumb and span types so the compiler flags every unguarded read, and use optional chaining at those reads. Hydration skips payload-less breadcrumbs and logs missing data without backfilling it. Refs REPLAY-1022 Co-Authored-By: George Gritsouk <[email protected]>
Contributor
📊 Type Coverage Diff
🔍 1 new type safety issue introducedType assertions (
This is informational only and does not block the PR. |
When a frame is missing data, describe it with a sentence that omits the missing value and its unit instead of leaving a blank (e.g. "took ms"). Clicks on a missing node now read "an unknown element" instead of "undefined". Refs REPLAY-1022 Co-Authored-By: George Gritsouk <[email protected]>
gggritso
reviewed
Oct 22, 2026
gggritso
left a comment
Member
There was a problem hiding this comment.
Makes sense overall. One ask is to make sure that the UI recovers some value whenever possible. If an event is known at all, ideally something shows up in the UI.
When a CLS web vital frame has no attributions (or no extracted selectors), still render a Layout shifts row using the frame's overall score with an unknown element, instead of dropping the row.
Member
|
@cursor review |
A web vital frame with a value but no rating rendered 'No value recorded'. Show the value instead, and only fall back to that text when the value is missing too.
gggritso
reviewed
Oct 22, 2026
gggritso
left a comment
Member
There was a problem hiding this comment.
Makes sense, just one request for clarification
Member
|
@cursor review |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3f138d1. Configure here.
gggritso
marked this pull request as ready for review
October 22, 2026 19:49
DominikB2014
approved these changes
Oct 26, 2026
gggritso
deleted the
georgegritsouk/replay-1022-missing-replay-breadcrumb-data-causes-minor-incomplete-ui
branch
October 26, 2026 15:40
This branch was successfully deployed
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.
Generally, SDKs often send Replay events (breadcrumbs) with no
payloadand when we try to inflate them into the UI, the code errors out in small ways and big. In this day and age, we just cannot rely on all the data being there, so we're going to gracefully degrade instead.For breadcrumbs, depending on type, we're going to reconstruct as much as possible based on the data, but without assuming we have it. e.g., an incomplete CLS might be "Cumulative Layout Shift" in the UI, even if we lost the attribution information and we don't know the CLS element.
Closes REPLAY-1022
via George Gritsouk.
--
View Junior Session [Sentry]