Skip to content

RUM-18337: Fix slow frame continuity measurement and resend duration corrections in partial view updates - #3980

Merged
aleksandr-gringauz merged 3 commits into
developfrom
hector.morilloprieto/RUM-18337
Oct 20, 2026
Merged

aleksandr-gringauz merged 3 commits into
developfrom
hector.morilloprieto/RUM-18337

Conversation

@hamorillo

Copy link
Copy Markdown
Collaborator

What does this PR do?

Two related fixes to RUM slow-frame tracking:

  1. DefaultSlowFramesListener now measures the gap between consecutive slow frames from the end of the previous record (start + duration) instead of its start, so genuinely back-to-back slow frames are correctly merged into a single record instead of incorrectly starting a new one.
  2. diffViewEvent's diffSlowFrames now resends the last known slow-frame record in a view update whenever its duration has changed, not just when a newer record with a later start appears — fixing a case where a growing record's duration correction was silently dropped from the diff after its first transmission.

Motivation

The two bugs compound each other: the first makes slow frames merge far more often once fixed, which increases exposure to the second.

Additional Notes

  • No API surface changes.
  • Also fixes a pre-existing test issue in DefaultSlowFramesListenerTest ("separate janks") where the listener was built with a hardcoded continuousSlowFrameThresholdNs = 16 instead of the test's own forged parameter.
  • New regression tests added for both fixes; existing tests for the touched code paths pass unchanged.

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)

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🔄 Datadog retried 2 tests - 2 passed on retry View in Datadog

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 71.77% (-0.05%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: f4602dd | Docs | View more details | Give us feedback!

@aleksandr-gringauz
aleksandr-gringauz marked this pull request as ready for review October 16, 2026 09:38
@aleksandr-gringauz
aleksandr-gringauz requested review from a team as code owners October 16, 2026 09:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T15:28:11.505911Z f4602dd New commits
🔒 Security Review ✅ Completed 2026-10-19T15:26:38.217468Z — New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 2b391e8bec

ℹ️ 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".

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 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.

Bits Code Review: FAIL

Two adjacent 400 ms jank frames now produce one record just below 700 ms, losing over 100 ms from the reported slow-frame timeline. The continuity change exposes the existing duration cap under default configuration.

Open Bits AI session

🤖 Bits Code Review · Commit 2b391e8

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 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.

Bits Code Review: PASS

More details

Static review supports the revised continuity tracking, duration-cap handling, and resending of duration corrections in partial view updates. No reportable defect was identified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 4a3ac14

@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: 4a3ac14006

ℹ️ 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".

@aleksandr-gringauz
aleksandr-gringauz force-pushed the hector.morilloprieto/RUM-18337 branch from 4a3ac14 to f4602dd Compare October 19, 2026 15:20

@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: f4602dd3c3

ℹ️ 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".

@aleksandr-gringauz aleksandr-gringauz added the ready-for-human-review All agentic review feedback was addressed and PR is ready for the human review. label Oct 20, 2026
@aleksandr-gringauz
aleksandr-gringauz merged commit 95ea2cf into develop Oct 20, 2026
26 checks passed
@aleksandr-gringauz
aleksandr-gringauz deleted the hector.morilloprieto/RUM-18337 branch October 20, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human-review All agentic review feedback was addressed and PR is ready for the human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants