Skip to content

Latest commit

 

History

History

README.md

Rum react navigation - Async Initialization

This project initializes the Datadog SDK asynchronously. See App.tsx for the asynchronous initialization implementation.

Usage

In this directory, install all dependencies:

yarn install
(cd ios && pod install)

To try this project you need to create a folder called config in the project root containing 2 files:

  • config/credentials.json file containing:

    {
        "clientToken": "<CLIENT_TOKEN>",
        "environment": "<ENVIRONMENT_NAME>",
        "applicationId": "<RUM_APPLICATION_ID>",
        "apiCall": "<ApiLink>"
    }

    <ApiLink> is a hyperlink to a gist file you have created to store the Datadog initialization information For example:

    {
        "sessionSamplingRate": 60,
        "nativeCrashReportEnabled": true
    }
  • config/hosts.json file containing:

    {
        "shopistApiHost": "shopist.io"
    }

To upload sourcemaps for the app, add a datadog-ci.json file in the project root containing:

{
  "apiKey":"<YOUR_DATADOG_API_KEY>"
}

Note: The Datadog API key must be valid.