Expose Android app startup Activity filtering in the React Native SDK
Los mantenedores suelen responder en 2 días
@sbarrio ya está trabajando en esto.
Desde el 9/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- kotlin, react-native, typescript
- Área
- mobile, observability
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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...
}
- Lenguaje dominante
- TypeScript
- Estrellas
- 145
- Forks
- 65
- Merge medio
- 2 d 16 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DataDog/dd-sdk-reactnative
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
DataDog/dd-sdk-reactnative#1486 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
-
GraphQL variables with non-ASCII contents will make Apollo Client request throw errorPosiblemente ocupada @cdn34dd la tomó hace 7 días. Abiertoawaiting response bug
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
DataDog/dd-sdk-reactnative#1482 · 2 comentarios · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
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 callPosiblemente ocupada @cdn34dd la tomó hace 5 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
DataDog/dd-sdk-reactnative#1377 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Babel plugin emits untransformed JSX when a tracked component has .map() children, breaking the Hermes buildPosiblemente ocupada @cdn34dd la tomó hace 5 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
DataDog/dd-sdk-reactnative#1353 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
iOS: network error events from JS-tracked requests bypass the drop_resource deduplication and cannot be filtered — expose a native error mapper?Posiblemente ocupada @marco-saia-datadog la tomó hace 5 días. Abiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
DataDog/dd-sdk-reactnative#1338 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de DataDog/dd-sdk-reactnative
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
homarr-labs/homarr#7191 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
AvaProtocol/ava-sdk-js#276 ·
Los mantenedores suelen responder en 1 día
-
useFragment does not require `variables` when the fragment's variables type has required fieldsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
apollographql/apollo-client#13493 ·
Los mantenedores suelen responder en 1 día