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

Comment thread packages/core/android/build.gradle Outdated
@datadog-prod-us1-4

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

Copy link
Copy Markdown

Pipelines  Tests

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/dd-sdk-reactnative | test:native-android   View in Datadog   GitLab

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🔄 Datadog auto-retried 2 jobs - 0 passed on retry View in Datadog

Useful? React with 👍 / 👎

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

@sbarrio
sbarrio force-pushed the sbarrio/RUM-16664/add-report-app-fully-displayed-api-for-ttfd branch from 9ffcb33 to 92df9ba Compare July 31, 2026 10:53
@sbarrio sbarrio added the Do not merge This PR is not ready to be merged yet label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do not merge This PR is not ready to be merged yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant