[RUM-14619] Add setViewLoadingTime API documentation#35328
Open
MaelNamNam wants to merge 2 commits intomasterfrom
Open
[RUM-14619] Add setViewLoadingTime API documentation#35328MaelNamNam wants to merge 2 commits intomasterfrom
MaelNamNam wants to merge 2 commits intomasterfrom
Conversation
Document the new experimental API that allows manually setting a view's loading time, overriding the automatic calculation.
Contributor
Preview links (active after the
|
rtrieu
requested changes
Mar 17, 2026
Contributor
rtrieu
left a comment
There was a problem hiding this comment.
one minor feedback, but otherwise looks good
|
|
||
| After the loading time is sent, it is accessible as `@view.loading_time` and is visible in the RUM UI. | ||
|
|
||
| **Note**: This API is experimental and might change in the future. |
Contributor
There was a problem hiding this comment.
our policy is that we don't document how the product/feature may work in the future, only as it does now
Suggested change
| **Note**: This API is experimental and might change in the future. |
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.
What does this PR do? What is the motivation?
Documents the new
setViewLoadingTime()experimental API for the Browser RUM SDK. This API allows developers to manually set a view's loading time, overriding the automatic calculation based on network requests and DOM mutations.The documentation is added to the "Monitoring Page Performance" page, as a new subsection under "How loading time is calculated", consistent with how the mobile SDKs document the equivalent
addViewLoadingTimeAPI.Merge instructions
Merge readiness:
Additional notes
The corresponding SDK change has already been shipped, see DataDog/browser-sdk#4180 released in v6.31.0. This PR adds the missing public documentation.