dd-sdk-reactnative icon indicating copy to clipboard operation
dd-sdk-reactnative copied to clipboard

performance monitoring does not look correct

Open ChrisWiles opened this issue 10 months ago • 2 comments

Question

I have had 2,000 sessions in the last day, but the metrics appear to only show the data for a single session.

For example, the FPS is inconsistent. If it were an average of all users, it should be much smoother. Also, when looking at 'Views with the highest percentage of slow renders,' it only shows data for half a day yesterday and is similarly erratic.

Am I doing something wrong? Why am I not seeing useful metrics?

Screenshot 2024-04-23 at 8 51 51 AM Screenshot 2024-04-23 at 8 53 24 AM

const config = new DatadogProviderConfiguration(
  clientToken,
  environment,
  applicationId,
  true, // track User interactions (e.g.: Tap on buttons. You can use 'accessibilityLabel' element property to give tap action the name, otherwise element type will be reported)
  true, // track XHR Resources
  true // track Errors
);
// Optional: Select your Datadog website (one of "US1", "EU1", "US3", "US5", "AP1" or "GOV")
config.site = 'US1';
// Optional: Enable JavaScript long task collection
config.longTaskThresholdMs = 100;
// Optional: enable or disable native crash reports
config.nativeCrashReportEnabled = true;
// Optional: sample RUM sessions (here, 100% of session will be sent to Datadog. Default = 100%)
config.sessionSamplingRate = 100;

if (__DEV__) {
  // Optional: Send data more frequently
  config.uploadFrequency = UploadFrequency.FREQUENT;
  // Optional: Send smaller batches of data
  config.batchSize = BatchSize.SMALL;
  // Optional: Enable debug logging
  // config.verbosity = SdkVerbosity.DEBUG;
}

ChrisWiles avatar Apr 23 '24 13:04 ChrisWiles

Hi @ChrisWiles, thank you for reaching out!

We strongly suggest to open a support ticket, and reference this GitHub issue there. This way our team can analyze the data of your organization and help you solve the issue.

In the meantime, we will double check how we calculate the metrics, and get back to you if we notice any problems that need to be fixed.

marco-saia-datadog avatar Apr 26 '24 07:04 marco-saia-datadog

https://help.datadoghq.com/hc/requests/1666340

Screenshot 2024-05-06 at 8 45 11 AM

None of this data is useful. An average FPS of 7,000? Also, it still doesn't seem like an average across all devices.

ChrisWiles avatar May 06 '24 13:05 ChrisWiles

Hello @ChrisWiles 👋

Our latest release v2.4.2 improves the JS Refresh Rate reliability by ensuring UI Thread safety, and making sure the reported time is always reset when the app is paused, to avoid unexpected peaks when the app is resumed.

I will close this issue for now, feel free to re-open it if you still experience the same problem :)

marco-saia-datadog avatar Jul 23 '24 09:07 marco-saia-datadog