Skip to content

RUM-12891: Fix RUM resource duration breakdown#3010

Merged
ambushwork merged 1 commit into
developfrom
yl/fix-duration-break-down
Dec 3, 2025
Merged

RUM-12891: Fix RUM resource duration breakdown#3010
ambushwork merged 1 commit into
developfrom
yl/fix-duration-break-down

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

This PRs fixes the resource duration breakdown feature which is broken since the version 2.12.0, more precisely from this commit.

The main cause of issue:

We have DatadogInteceptor generating the RUM event startResource with the ResourceId(requestUrl, randomUUID) as the key of the resource when intercepting a request, also we have DatadogEventListener to add waitForResourceTiming event and addResourceTiming to report the resource timing for this duration breakdown.

The issue is that, both DatadogInteceptor and DatadogEventListener are generating their own UUID for the same request, so in our event processing they won’t be able to match.

The fix is to remove the generation of UUID in DatadogEventListener since its key is only used for enhancing the current resource.

Motivation

RUM-12891

Demo

Before image
After image

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 requested review from a team as code owners November 18, 2025 09:33
@datadog-datadog-prod-us1

This comment has been minimized.

@codecov-commenter

codecov-commenter commented Nov 18, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.33%. Comparing base (bc35e34) to head (2e3e915).
⚠️ Report is 1101 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3010      +/-   ##
===========================================
+ Coverage    71.08%   71.33%   +0.25%     
===========================================
  Files          859      859              
  Lines        31315    31320       +5     
  Branches      5276     5276              
===========================================
+ Hits         22260    22341      +81     
+ Misses        7552     7506      -46     
+ Partials      1503     1473      -30     
Files with missing lines Coverage Δ
...com/datadog/android/okhttp/DatadogEventListener.kt 96.15% <100.00%> (ø)

... and 35 files with indirect coverage changes

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

@satween satween self-requested a review December 3, 2025 15:42
@ambushwork ambushwork merged commit f519131 into develop Dec 3, 2025
27 checks passed
@ambushwork ambushwork deleted the yl/fix-duration-break-down branch December 3, 2025 15:43
@ncreated ncreated restored the yl/fix-duration-break-down branch April 9, 2026 10:18
@0xnm 0xnm deleted the yl/fix-duration-break-down branch April 24, 2026 09:43
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.

4 participants