Skip to content

PANA-5681: Update RUM and Session Replay schemas for heatmaps [2 of 4]#3203

Merged
jonathanmos merged 1 commit into
feature/heatmapsfrom
gonzalezreal/PANA-5681/schema-updates
May 13, 2026
Merged

PANA-5681: Update RUM and Session Replay schemas for heatmaps [2 of 4]#3203
jonathanmos merged 1 commit into
feature/heatmapsfrom
gonzalezreal/PANA-5681/schema-updates

Conversation

@gonzalezreal

@gonzalezreal gonzalezreal commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds the permanent_id field to RUM action targets and permanentId to Session Replay leaf wireframes. These fields enable correlating user interactions with visual wireframes for heatmap support.

Schema changes match DataDog/rum-events-format#356, which ensures backwards-compatible field ordering (new fields appended as the last constructor parameter).

Motivation

Support mobile heatmaps. This is PR 2 of 4, schema foundation for the RUM and Session Replay integration PRs that follow.

Additional Notes

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)

0xnm
0xnm previously approved these changes Feb 27, 2026
ambushwork
ambushwork previously approved these changes Mar 1, 2026
@jonathanmos
jonathanmos marked this pull request as draft May 5, 2026 10:05
@jonathanmos jonathanmos changed the title PANA-5681: Update RUM and Session Replay schemas for heatmaps PANA-5681: Update RUM and Session Replay schemas for heatmaps [2 of 4] May 5, 2026
@codecov-commenter

codecov-commenter commented May 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.09%. Comparing base (916b114) to head (81e4f04).
⚠️ Report is 1 commits behind head on feature/heatmaps.

Additional details and impacted files
@@                 Coverage Diff                  @@
##           feature/heatmaps    #3203      +/-   ##
====================================================
+ Coverage             72.06%   72.09%   +0.04%     
====================================================
  Files                   964      964              
  Lines                 35429    35429              
  Branches               5880     5880              
====================================================
+ Hits                  25529    25542      +13     
+ Misses                 8285     8278       -7     
+ Partials               1615     1609       -6     

see 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jonathanmos
jonathanmos force-pushed the gonzalezreal/PANA-5681/view-identity-resolver branch 2 times, most recently from 77957a4 to ec32d76 Compare May 11, 2026 11:43
Base automatically changed from gonzalezreal/PANA-5681/view-identity-resolver to feature/heatmaps May 13, 2026 08:15
@jonathanmos
jonathanmos dismissed stale reviews from ambushwork and 0xnm May 13, 2026 08:15

The base branch was changed.

@jonathanmos
jonathanmos force-pushed the gonzalezreal/PANA-5681/schema-updates branch from ec4040e to 81e4f04 Compare May 13, 2026 08:29
@jonathanmos
jonathanmos marked this pull request as ready for review May 13, 2026 08:30

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 81e4f0465f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

public static final field Companion Lcom/datadog/android/sessionreplay/model/MobileSegment$Wireframe$ImageWireframe$Companion;
public fun <init> (JJJJJLcom/datadog/android/sessionreplay/model/MobileSegment$WireframeClip;Lcom/datadog/android/sessionreplay/model/MobileSegment$ShapeStyle;Lcom/datadog/android/sessionreplay/model/MobileSegment$ShapeBorder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V
public synthetic fun <init> (JJJJJLcom/datadog/android/sessionreplay/model/MobileSegment$WireframeClip;Lcom/datadog/android/sessionreplay/model/MobileSegment$ShapeStyle;Lcom/datadog/android/sessionreplay/model/MobileSegment$ShapeBorder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun <init> (JJJJJLcom/datadog/android/sessionreplay/model/MobileSegment$WireframeClip;Lcom/datadog/android/sessionreplay/model/MobileSegment$ShapeStyle;Lcom/datadog/android/sessionreplay/model/MobileSegment$ShapeBorder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;)V

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the existing wireframe constructor ABI

When an app has a separately compiled mapper/library (or Java source) that still calls the previous ImageWireframe(..., Boolean) constructor, this change removes that JVM signature and only exposes the new overload with the extra String, so upgrading the SDK can fail with NoSuchMethodError/compile errors even though permanentId is optional. Since these wireframe models are public API and custom mappers instantiate them directly, keep the old constructor overloads (the same issue repeats for the other wireframe classes) while adding the new optional field.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This will only happen in a very narrow edgecase and can't be handled with the existing generator, so an acceptable issue

@jonathanmos
jonathanmos requested a review from ambushwork May 13, 2026 10:37
@jonathanmos
jonathanmos merged commit 449a747 into feature/heatmaps May 13, 2026
26 checks passed
@jonathanmos
jonathanmos deleted the gonzalezreal/PANA-5681/schema-updates branch May 13, 2026 11:51
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.

5 participants