Expose Android app startup Activity filtering in the React Native SDK
メンテナーはふだん 3 日以内に返信
@sbarrio がすでに取り組んでいます。
2026年10月9日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- kotlin, react-native, typescript
- 領域
- mobile, observability
調査の方向性
Start with the workaround in the issue, which overrides buildRumConfiguration() in DdSdkNativeInitialization and calls setAppStartupActivityPredicate on the Android RumConfiguration.Builder. Trace how a TypeScript RUM option would travel through the native bridge into DdSdkConfiguration, and decide whether the field is optional with the current behavior kept as the default. Done means a new androidAppStartupActivityClassNames option that filters startup Activities on Android, with the default unchanged and tests covering both cases.
索引モデルが issue の本文から書いたものです。
説明
Feature description
Use case
Android apps can contain secondary Activities that do not represent an app startup. Datadog may treat these Activities as warm starts. We observed time_to_initial_display warm-start vitals lasting up to 58 seconds while the user was already navigating and interacting with the app. These invalid measurements significantly inflate Android startup SLOs.
How the SDK currently delivers
@datadog/[email protected] uses [email protected], which supports RumConfiguration.Builder.setAppStartupActivityPredicate.
However, the React Native SDK does not expose a way to configure that predicate. React Native consumers therefore cannot distinguish their primary React Activity from authentication or other auxiliary Activities without patching the package’s native initialization code.
What we would like to see
Expose an Android-specific React Native configuration option that limits app startup tracking to selected Activity class names:
configuration.androidAppStartupActivityClassNames = [
'com.example.MainActivity'
];
When unspecified, the SDK could preserve its current behavior for backward compatibility.
Proposed solution
The React Native SDK could:
- Add
androidAppStartupActivityClassNames?: string[]to its RUM configuration. - Serialize it through the native configuration bridge.
- Parse it in the Android
DdSdkConfiguration. - Apply it while constructing
RumConfiguration:
configuredActivityClassNames?.let { classNames ->
configBuilder.setAppStartupActivityPredicate { activity ->
activity.javaClass.name in classNames
}
}
An alternative would be an Android-native extension point that applications can use to customize RumConfiguration.Builder before RUM initialization.
Other relevant information
Our current workaround patches DdSdkNativeInitialization.buildRumConfiguration():
private const val APP_STARTUP_ACTIVITY_CLASS_NAME =
"com.example.MainActivity"
@OptIn(ExperimentalRumApi::class)
private fun buildRumConfiguration(
configuration: DdSdkConfiguration
): RumConfiguration {
// Existing configuration...
configBuilder.setAppStartupActivityPredicate { activity ->
activity.javaClass.name == APP_STARTUP_ACTIVITY_CLASS_NAME
}
// Existing configuration...
}
- 主要言語
- TypeScript
- スター
- 145
- フォーク
- 65
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 21
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataDog/dd-sdk-reactnative のほかの issue
-
GraphQL variables with non-ASCII contents will make Apollo Client request throw error対応中かも @cdn34dd が 4 日前に担当しました。 オープンawaiting response bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
DataDog/dd-sdk-reactnative#1482 · コメント 2 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Interaction tracking records nothing: the babel plugin's injected import makes Metro bundle a second copy of the SDK, so DdBabelInteractionTracking.config is set on a different class than instrumented handlers call対応中かも @cdn34dd が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
DataDog/dd-sdk-reactnative#1377 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Babel plugin emits untransformed JSX when a tracked component has .map() children, breaking the Hermes build対応中かも @cdn34dd が 2 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
DataDog/dd-sdk-reactnative#1353 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
iOS: network error events from JS-tracked requests bypass the drop_resource deduplication and cannot be filtered — expose a native error mapper?対応中かも @marco-saia-datadog が 2 日前に担当しました。 オープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
DataDog/dd-sdk-reactnative#1338 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Feature Request: Sanitize Auto-Tracked Resource URLs Before Reporting対応中かも @marco-saia-datadog が 2 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
DataDog/dd-sdk-reactnative#1327 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
DataDog/dd-sdk-reactnative の issue をすべて見る
似ている issue
-
area:deploy task
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wilanis/wilanis-js#1017 ·
メンテナーはふだん 1 日以内に返信
-
documentation v2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
modelcontextprotocol/servers#5133 ·
メンテナーはふだん 1 日以内に返信
-
budget bug feature frontend good-issue medium needs-review OSCI'26 payments
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
SatyamPandey-07/WorkSphere#5990 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
lugassawan/swe-workbench#799 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
yukikotani231/sqlsift#326 ·
メンテナーはふだん 1 日以内に返信