@datadog/browser-rum
TypeScript icon, indicating that this package has built-in type declarations

5.16.0 • Public • Published

RUM Browser Monitoring

Datadog Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users.

See the dedicated datadog documentation for more details.

Usage

To start collecting events, add @datadog/browser-rum to your package.json file, then initialize it with:

import { datadogRum } from '@datadog/browser-rum'

datadogRum.init({
  applicationId: '<DATADOG_APPLICATION_ID>',
  clientToken: '<DATADOG_CLIENT_TOKEN>',
  site: '<DATADOG_SITE>',
  //  service: 'my-web-application',
  //  env: 'production',
  //  version: '1.0.0',
  sessionSampleRate: 100,
  sessionReplaySampleRate: 100,
  trackResources: true,
  trackLongTasks: true,
  trackUserInteractions: true,
})

Note: The trackUserInteractions parameter enables the automatic collection of user clicks in your application. Sensitive and private data contained in your pages may be included to identify the elements interacted with.

/@datadog/browser-rum/

    Package Sidebar

    Install

    npm i @datadog/browser-rum

    Weekly Downloads

    1,447,285

    Version

    5.16.0

    License

    Apache-2.0

    Unpacked Size

    892 kB

    Total Files

    370

    Last publish

    Collaborators

    • datadog