Skip to content

[RUM 16664] Report TTID and TTFD on RN apps - #1336

Draft
sbarrio wants to merge 4 commits into
developfrom
sbarrio/RUM-16664/add-report-app-fully-displayed-api-for-ttfd
Draft

[RUM 16664] Report TTID and TTFD on RN apps#1336
sbarrio wants to merge 4 commits into
developfrom
sbarrio/RUM-16664/add-report-app-fully-displayed-api-for-ttfd

Conversation

@sbarrio

@sbarrio sbarrio commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

TTID reporting

This PR integrates the com.datadoghq:dd-sdk-android-rum-prelaunch module that was added to the Android SDK here: DataDog/dd-sdk-android#3635

This 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 reportAppFullyDisplayed API, 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

Screenshot 2026-07-09 at 16 21 09 Screenshot 2026-07-09 at 16 20 05

iOS

Screenshot 2026-07-09 at 16 20 54 Screenshot 2026-07-09 at 16 21 02

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • 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)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be uncommented once the android SDK is updated with a version that includes the prelaunch module.

@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Jul 9, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 9ffcb33 | Docs | Datadog PR Page | Give us feedback!

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.

1 participant