Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,28 @@

See the wizard [official documentation][13] for options.

### Use Datadog Metro Configuration

Check warning on line 70 in content/en/real_user_monitoring/mobile_and_tv_monitoring/react_native/error_tracking.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.headings

'Use Datadog Metro Configuration' should use sentence-style capitalization.

Starting from `@datadog/mobile-react-native@2.9.0` and `@datadog/datadog-ci@v3.10.0`, the SDK exports a Datadog Metro Plugin, which attaches a unique Debug ID to your application bundle and sourcemap.

Add it to your `metro.config.js` to allow for accurate symbolication of stacktraces on Datadog:

```js
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const {withDatadogMetroConfig} = require('@datadog/mobile-react-native/metro');

// Your configuration
const config = mergeConfig(getDefaultConfig(__dirname), {});

module.exports = withDatadogMetroConfig(config);
```

### Use the `datadog-ci react-native inject-debug-id` command

As an alternative to the Metro Configuration, starting from `@datadog/mobile-react-native@2.9.0` and `@datadog/datadog-ci@v3.10.0`, you can use the `datadog-ci react-native inject-debug-id` command to manually attach a unique Debug ID to your application bundle and sourcemap.

Check notice on line 88 in content/en/real_user_monitoring/mobile_and_tv_monitoring/react_native/error_tracking.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.sentencelength

Suggestion: Try to keep your sentence length to 25 words or fewer.

Usage instructions are available on the [command documentation page][17].

### Passing options for your uploads

#### Using the `datadog-sourcemaps.gradle` script
Expand Down Expand Up @@ -481,3 +503,4 @@
[14]: https://github.com/DataDog/react-native-performance-limiter
[15]: https://plugins.gradle.org/plugin/com.datadoghq.dd-sdk-android-gradle-plugin
[16]: https://app.datadoghq.com/source-code/setup/rum
[17]: https://github.com/DataDog/datadog-ci/blob/master/src/commands/react-native/README.md#inject-debug-id
Loading