dd-sdk-reactnative: nativeCrashReportEnabled option is not working
Describe what happened
Crashes are not appear in the UX Monitoring -> RUM Applications -> Total Crashes by Version section when nativeCrashReportEnabled option is enabled.
Steps to reproduce the issue: Set up Datadog using config
const config = new DdSdkReactNativeConfiguration(
'REMOVED',
__DEV__ ? 'dev' : 'prod',
'REMOVED',
true, // track User interactions (e.g.: Tap on buttons)
true, // track XHR Resources
true, // track Errors
);
config.nativeCrashReportEnabled = true;
DdSdkReactNative.initialize(config);
Crash app using IOS native code. Example
NSMutableArray *tmp = [[NSMutableArray alloc] init];
NSObject *object = nil;
[tmp addObject:object];
Describe what you expected:
Crashes should appear in the Total Crashes by Version section.
Additional context Version of the SDK - “dd-sdk-reactnative”: “^1.0.0-beta3”
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (7 by maintainers)
Hi everyone, We’ve released version 1.0.0-rc8 yesterday which includes native iOS crash reporting.
Please note that If you are using distributed tracing, you now need to specify your hosts as first-party hosts in your SDK config after upgrading to this version:
You can upload dsyms by using our fastlane plugin, our github action or our cli, you’ll find more on that here: https://docs.datadoghq.com/real_user_monitoring/ios/crash_reporting/?tab=cocoapods#symbolicate-crash-reports
Feel free to open a new issue if you have any trouble 😃
Hi @SparkleFaerieCoder , thanks for your interest, this is still a feature under development, we’ll post an announcement as soon as it’s ready.
In the RUM documentation the option is listed without any warning about being unsupported on iOS - I was just about to commit a decent amount of work to move from another crash reporting service 😕
https://docs.datadoghq.com/real_user_monitoring/reactnative/#initialize-the-library-with-application-context
Hi @ivoreis , indeed that’s a mistake, we’re working on a new RC to include the iOS crash reporting
Hi team! Nice work with this react-native DD integration!
I’m currently looking at the latest RC (RC7) and noticed that the iOS bridge being used is still
0.5.2which doesn’t includenativeCrashReport. Any chance to bump the dep to use https://github.com/DataDog/dd-bridge-ios/releases/tag/0.5.3 instead or is there any other work pending?Thanks in advance!
Thanks, @xgouchet! Looking forward to the next RC 👍🏼
The SDK does report Errors in RUM, meaning that when you look at a session or explore RUM events, you’ll see Errors tracked from your app. We don’t provide yet crash reporting on iOS, and React Native errors are not yet integrated in our Error Tracking product (aggregating similar errors to see their trends across versions, OS versions etc…)
It’s globally available on Android, and sold work as well for native crashes in React native as well.
I’m sorry but we don’t have any ETA yet. We first want to make sure that this feature is totally stable and reliable for native apps, plus we need to add more work to make the Error Tracking in Datadog fully compatible with cross platform frameworks such as React Native
Hi @VasiliyShevelDevPro , As of today, crash reporting for iOS is only available as a public beta feature, and for native iOS applications only. Once this feature is fully complete and stable, we will make it available for React native as well.