Skip to content

馃懛 [PANA-8578] Update schema to support session replay string roles - #4968

Merged
sethfowler-datadog merged 1 commit into
mainfrom
seth.fowler/PANA-8578-update-schema-to-support-session-replay-string-roles
Aug 20, 2026
Merged

馃懛 [PANA-8578] Update schema to support session replay string roles#4968
sethfowler-datadog merged 1 commit into
mainfrom
seth.fowler/PANA-8578-update-schema-to-support-session-replay-string-roles

Conversation

@sethfowler-datadog

@sethfowler-datadog sethfowler-datadog commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Motivation

The rum-events-schema has been updated to support two new session-replay-related features:

  • Strings in session replay records can now be tagged with "roles". This metadata allows us to perform transformations on recorded sessions on the backend that would be difficult to support today, including after-the-fact privacy masking.
  • The relatively new "Change" data format previously didn't support incremental form input events; we fell back to the V1 format for those. A change format representation of form input events has been added. This allows the strings which appear in those events to be tagged with string roles.

Because these schema changes add new variants to existing discriminated unions, they don't type check against main today. We need to both update the rum-events-schema dependency and fix the resulting type errors.

Changes

  • The rum-events-format dependency has been updated to the latest commit.
  • The derived types have been regenerated.
  • The definitions in sessionReplayConstants.ts have been updated to match the shared versions in rum-events-format.
  • A few call sites that directly interact with the new format changes have been updated to support them in a trivial way, fixing the type errors. Full implementation will come in future PRs.

@sethfowler-datadog
sethfowler-datadog requested review from a team as code owners August 20, 2026 16:06

@bcaudan bcaudan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@sethfowler-datadog
sethfowler-datadog merged commit e76d84f into main Aug 20, 2026
32 checks passed
@sethfowler-datadog
sethfowler-datadog deleted the seth.fowler/PANA-8578-update-schema-to-support-session-replay-string-roles branch August 20, 2026 16:12
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants