Error Tracking Replay Snippets
Join the Preview!
Error Tracking Replay snippets is in Preview.
Request AccessOverview
As a frontend engineer, an essential and often time-consuming part of the debugging process is reproducing bugs. But it can be difficult to do so without a clear understanding of the actions a user took before your application throws an error.
Error Tracking Replay Snippets allows you to view a pixel-perfect recreation of a user’s journey 15 seconds before and after an error occurred so you can reproduce bugs, save time, and eliminate any guesswork.
Setup
If you have not set up Datadog Frontend Error Tracking, follow the in-app setup instructions or see the setup documentation for browser and mobile.
During SDK initialization, configure your application’s replay sample rate.
Set the sessionReplaySampleRate
between 1 and 100.
import { datadogRum } from '@datadog/browser-rum';
datadogRum.init({
applicationId: '<APP_ID>',
clientToken: '<CLIENT_TOKEN>',
service: '<SERVICE>',
env: '<ENV_NAME>',
sessionReplaySampleRate: 20,
trackResources: true,
trackUserInteractions: true,
});
Follow these steps to setup and configure your mobile application’s error replay for this platform.
Follow these steps to setup and configure your mobile application’s error replay for this platform.
Follow these steps to setup and configure your mobile application’s error replay for this platform.
Follow these steps to setup and configure your mobile application’s error replay for this platform.
Replay errors
After reviewing key information about the error, such as the error message and stack trace, you can immediately pivot directly from the issue summary to a live reproduction of the most recent session that experienced the error. Scroll down below the stack trace and click on the preview of the replay to see a users actions before the error occured.
Further Reading
Additional helpful documentation, links, and articles: