[RUM 16664] Report TTID and TTFD on RN apps - #1336
Draft
sbarrio wants to merge 4 commits into
Draft
Conversation
sbarrio
commented
Jul 9, 2026
| implementation "com.datadoghq:dd-sdk-android-webview:3.10.0" | ||
| implementation "com.datadoghq:dd-sdk-android-ndk:3.10.0" | ||
| implementation "com.datadoghq:dd-sdk-android-flags:3.10.0" | ||
| // implementation "com.datadoghq:dd-sdk-android-rum-prelaunch:3.10.0" // TO DO - Add module when bumping dd-sdk-android |
Contributor
Author
There was a problem hiding this comment.
This can be uncommented once the android SDK is updated with a version that includes the prelaunch module.
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 9ffcb33 | Docs | Datadog PR Page | Give us feedback! |
3 tasks
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?
TTID reporting
This PR integrates the
com.datadoghq:dd-sdk-android-rum-prelaunchmodule that was added to the Android SDK here: DataDog/dd-sdk-android#3635This module integrates a way for Cross Platform SDKs to reliably obtain a TTID measurement without having to rely on the native Android SDK being initialized as early as possible, which is something that on most RN apps will not be possible as the first Activity will most probably have rendered its first frame way before the RN bridge has started and the host app has initialized the RN SDK. For more details on the implementation please check the PR linked above.
TTFD reporting
Second, this PR exposes the manual
reportAppFullyDisplayedAPI, which allows for host apps to decide when an app has completed it's first display and report that timestamp back to Datadog to be presented on the Dashboard as the TTFD value for that session alongside its TTID.Motivation
TTID and TTFD vitals have been reported consistently on native SDKs for a while now but the RN SDK lacked propert support for them. This PR solves this.
Additional Notes
Android
iOS
Review checklist (to be filled by reviewers)