Skip to content

Add missing device and Os information to RUM crash events#187

Merged
ambushwork merged 2 commits into
developfrom
yl/fix-missing-device-info-in-crash
Jun 12, 2026
Merged

Add missing device and Os information to RUM crash events#187
ambushwork merged 2 commits into
developfrom
yl/fix-missing-device-info-in-crash

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

os and device fields are not copied from last view when reporting crash event in a new session, this PR adds them.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@ambushwork
ambushwork marked this pull request as ready for review June 12, 2026 09:41
@ambushwork
ambushwork requested a review from a team as a code owner June 12, 2026 09:41
@ambushwork
ambushwork requested a review from Copilot June 12, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes missing device and os fields in RUM crash (error) events by copying them from the last persisted view event when reporting a crash in a new session.

Changes:

  • Add device and os to the crash event payload generated from the persisted last-view file.
  • Extend crash reporter tests to include device/os in the persisted view event and assert they are propagated to the crash event.
  • Update the built dist artifact to reflect the library change.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/source/tests/rum/Test__RumCrashReporterTask.bs Adds fake device/os to stored view fixtures and asserts crash events inherit them.
library/components/rum/RumCrashReporterTask.bs Copies device/os from lastViewEvent into the generated crash event payload.
dist/components/rum/RumCrashReporterTask.brs Updates compiled output to include device/os in crash event generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/source/tests/rum/Test__RumCrashReporterTask.bs
@ambushwork
ambushwork force-pushed the yl/fix-missing-device-info-in-crash branch from 9499bed to 0dbf3bd Compare June 12, 2026 12:35
@ambushwork
ambushwork merged commit 523f62e into develop Jun 12, 2026
8 checks passed
@ambushwork
ambushwork deleted the yl/fix-missing-device-info-in-crash branch June 12, 2026 12:58
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.

3 participants