Error Tracking Replay Snippets

이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.
Join the Preview!

Error Tracking Replay snippets is in Preview.

Request Access

Overview

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

  1. 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.

  2. 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.

Error Tracking Replay Snippet

Further Reading

PREVIEWING: aliciascott/DOCS-9725-Cloudcraft