dd-sdk-reactnative: Can't finish RUM setup

Describe what happened Im trying to connect datadog dashboard to my app, i followed every single step in the docs and in the RUM section when create a new app.

This is my config file:

import { DdSdkReactNativeConfiguration } from '@datadog/mobile-react-native';

const config = new DdSdkReactNativeConfiguration(
  '...',
  'env',
  '...',
  true, // track User interactions
  true, // track XHR Resources
  true, // track Errors
);

config.site = 'US1';
config.nativeCrashReportEnabled = true;
config.sampleRate = 100;

export default config;

then i create a function to init datadog

import { DdSdkReactNative } from '@datadog/mobile-react-native';
import datadogConfig from './datadogConfig';

const datadogInit = () => {
  DdSdkReactNative.initialize(datadogConfig)
    .then(() => {
      console.log('Works');
      DdSdkReactNative.setUser({
          id: '123',
         name: 'test',
      });
    })
    .catch(err => {
      console.error(err);
    });
};

export default datadogInit;

then i call that function in my index, i build my app and run it and in the console it shows me the console.log(“Works”) but the dashboard is Waiting for data…

Additional context

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Hi @louiszawadzki, the first time i tried to install the latest version 1.1.4 but it throws errors at the time of installation and I tried with previous versions, but let me try again and if I have any errors I’ll show you