Expo Crash Reporting and Error Tracking

Overview

Enable Expo Crash Reporting and Error Tracking to get comprehensive crash reports and error trends with Real User Monitoring.

With this feature, you can access the following features:

  • Aggregated Expo crash dashboards and attributes
  • Symbolicated iOS and deobfuscated Android crash reports
  • Trend analysis with Expo error tracking

In order to symbolicate your stack traces and deobfuscate Android crashes, upload your .dSYM, Proguard mapping files and source maps to Datadog using the expo-datadog config plugin.

Your crash reports appear in Error Tracking.

Setup

Use the expo-datadog package and configuration plugin. For more information, see the Expo and Expo Go documentation.

Add @datadog/datadog-ci as a development dependency. This package contains scripts to upload the source maps. You can install it with NPM:

npm install @datadog/datadog-ci --save-dev

or with Yarn:

yarn add -D @datadog/datadog-ci

Run eas secret:create to set DATADOG_API_KEY to your Datadog API key.

Disable file uploads

You can disable some files from uploading by setting the iosDsyms, iosSourcemaps, androidProguardMappingFiles, or androidSourcemaps parameters to false.

{
    "expo": {
        "plugins": [
            [
                "expo-datadog",
                {
                    "iosDsyms": false
                }
            ]
        ]
    }
}

Setting the Datadog site

Run eas secret:create to set DATADOG_SITE to the host of your Datadog site, for example: datadoghq.eu. By default, datadoghq.com is used.

Plugin configuration options

ParameterDefaultDescription
iosDsymstrueEnables the uploading of dSYMS files for the symbolication of native iOS crashes.
iosSourcemapstrueEnables the uploading of JavaScript source maps on iOS builds.
androidProguardMappingFilestrueEnables the uploading of Proguard mapping files to deobfuscate native Android crashes (is only applied if obfuscation is enabled).
androidSourcemapstrueEnables the uploading of JavaScript source maps on Android builds.

Further reading