Overview
If you experience unexpected behavior with Datadog RUM, use this guide to resolve issues. If you continue to have trouble, contact Datadog Support for further assistance.
Set sdkVerbosity for easier debugging
If you're able to run your app, but you are not seeing the data you expect on the Datadog site, try adding the following to your code as part of initialization:
DatadogSdk.Instance.SetSdkVerbosity(CoreLoggerLevel.Debug);
This causes the SDK to output additional information about what it's doing and what errors it's encountering, which may help you and Datadog Support narrow down your issue.
The SDK is not sending data
Datadog does not support sending data from the Unity Editor, only from iOS and Android simulators, emulators, and devices.
If you're not seeing any data in Datadog:
Make sure you are running your app on an iOS or Android simulator, emulator, or device, and not from the editor.
Check that you have set the
TrackingConsentas part of your initialization. Tracking consent is set toTrackingConsent.Pendingduring initialization, and needs to be set toTrackingConsent.Grantedbefore Datadog sends any information.DatadogSdk.Instance.SetTrackingConsent(TrackingConsent.Granted);
Further reading
Additional helpful documentation, links, and articles: