[Android] TTID (Time to Initial Display) is never emitted on Android despite native initialization and v3 SDK upgrade
メンテナーはふだん 2 日以内に返信
@sbarrio がすでに取り組んでいます。
2026年10月9日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- android, react-native, typescript
調査の方向性
Expo Config Plugin のエントリポイントである withDatadogNativeInit.ts と MainApplication.onCreate から開始し、React Native ラッパーによるネイティブビューイベントの起動時処理を追跡します。Android の動作を、文書化されているネイティブ初期化および関連する issue #1214 と比較します。Android のフローを再現し、slow_frames や frozen_frames をリグレッションさせずに、初期ビューに対して time_to_initial_display が発行されることを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
After upgrading @datadog/mobile-react-native from 2.14.1 to 3.5.1 (which embeds dd-sdk-android:3.10.0) to unlock Mobile Vitals/TTID metrics, Android TTID (time_to_initial_display) is completely missing / never emitted.
iOS TTID works flawlessly out of the box. On Android, while initial native views (ApplicationLaunch + MainActivity) are correctly created and other mobile vitals like slow_frames / frozen_frames are streaming normally, the core time_to_initial_display attribute remains persistently absent.
Reproduction steps
- Setup an Expo project using SDK 51+ with
@datadog/mobile-react-nativev3.5.1. - Initialize the Datadog SDK natively inside
MainApplication.onCreateusing an Expo Config Plugin before the React Native bridge starts. - Configure Datadog with
nativeViewTracking: trueand the new V3FileBasedConfiguration. - Build the Android app locally or via EAS (
eas build --profile production --platform android --local). - Open the app on an Android device, trigger initial views, and inspect the RUM Explorer via Datadog dashboard.
SDK logs
Expected behavior
According to the Datadog documentation, once native initialization is properly configured before the RN runtime starts, the Android SDK should capture the application launch lifecycle and emit the time_to_initial_display metric for the initial view.
Affected SDK versions
3.5.1
Latest working SDK version
None (Upgraded from 2.14.1 which did not support this feature)
Did you confirm if the latest SDK version fixes the bug?
Yes
Integration Methods
NPM
React Native Version
0.85.3
Package.json Contents
{
"name": "x-mobile",
"version": "0.1.44",
"private": true,
"main": "expo-router/entry",
"dependencies": {
"@datadog/mobile-react-native": "3.5.1",
"expo": "56.0.8",
"expo-router": "56.2.8",
"react": "19.2.3",
"react-native": "0.85.3"
},
"packageManager": "[email protected]"
}
iOS Setup
Android Setup
Using Expo Managed Workflow. The native setup is dynamically injected via a custom Expo Config Plugin (withDatadogNativeInit.ts) that adds the required Datadog native initialization code directly into MainApplication.onCreate before the React Native host starts.
Device Information
- Device: Samsung Galaxy S25 Ultra (SM-S938B)
- OS Version: Android 15
- Network State: Wifi / Cellular
Other relevant information
Summary of the current behavior observed via Datadog RUM (MCP):
| Category | iOS | Android |
|---|---|---|
View Tracking (ApplicationLaunch / MainActivity) |
✅ Success | ✅ Success |
Mobile Vitals (slow_frames / frozen_frames) |
✅ Success | ✅ Success |
time_to_initial_display (TTID) |
✅ Success | ❌ Never Emitted |
Additional Findings:
We noticed that while the underlying dd-sdk-android (v3.10.0) contains multiple upstream TTID fixes (such as #2921, #3031, #3173, #3199), the issue seems to stem from how the React Native wrapper layer interacts with or consumes these native events during startup in a modern React 19 / architecture context.
This looks highly related to the auto-closed issue #1214 where a similar gap was reported but closed due to inactivity without explicit confirmation of a fix.
- 主要言語
- TypeScript
- スター
- 145
- フォーク
- 65
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataDog/dd-sdk-reactnative のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
DataDog/dd-sdk-reactnative#1497 ·
メンテナーはふだん 2 日以内に返信
-
clearUserInfo() doesn't clear the cached user id, so baggage keeps the previous user's id対応中かも @hippi345 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DataDog/dd-sdk-reactnative#1495 ·
メンテナーはふだん 2 日以内に返信
-
[actionNameAttribute] prop doesn't accept value with curly braces対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
DataDog/dd-sdk-reactnative#1486 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
Expose Android app startup Activity filtering in the React Native SDK対応中かも @sbarrio が 9 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DataDog/dd-sdk-reactnative#1485 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
GraphQL variables with non-ASCII contents will make Apollo Client request throw error対応中かも @cdn34dd が 11 日前に担当しました。 オープンawaiting response bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
DataDog/dd-sdk-reactnative#1482 · コメント 2 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
DataDog/dd-sdk-reactnative の issue をすべて見る
似ている issue
-
freshness freshness:observed-only
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
thoroc/context-radar#280 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
documentation story
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
bug category:billing priority:p3 track:fast
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
LanternOps/breeze#9223 ·
メンテナーはふだん 1 日以内に返信