Use request dispatch time as RUM resource start date#173
Closed
gregomite wants to merge 1 commit into
Closed
Conversation
3 tasks
Signed-off-by: Greg Jenkins <[email protected]> Co-authored-by: gregomite <[email protected]>
ambushwork
force-pushed
the
fix/resource-start-timestamp
branch
from
June 5, 2026 11:50
76a06fc to
7660364
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resource events derived their start date from the report time (now - transferTime) at the moment the event was serialized on the RUM thread. Any latency between request completion and serialization shifted the resource start later, so client resource spans could appear to start after the upstream APM spans they parent.
Capture the wall-clock dispatch time in DdUrlTransfer when the request starts and carry it on the resource as
startTime. RumViewScope and RumActionScope now prefer this explicit start time, falling back to the previous computation when it is absent.What does this PR do?
Capture the wall clock time when the HTTP request starts, not when the request is serialized.
Motivation
When integrating our app's HTTP requests with tracing headers, we observed incorrect client request start times in flame graphs. The delta was very similar to behavior we observed with the Operations API that led to #160.
Additional Notes
See #172
Review checklist (to be filled by reviewers)