You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@datadog/browser-rum-core

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/browser-rum-core

Datadog browser RUM core utilities.


Version published
Weekly downloads
1.3M
decreased by-13.98%
Maintainers
1
Created
Weekly downloads
 

Package description

What is @datadog/browser-rum-core?

The @datadog/browser-rum-core package is part of Datadog's Real User Monitoring (RUM) solutions, designed to help developers monitor and analyze the performance and user interactions on web applications in real-time. It provides essential tools to capture detailed information about the user's experience, including performance metrics, errors, and user actions.

What are @datadog/browser-rum-core's main functionalities?

User Session Tracking

This feature allows you to track user sessions and capture key interactions and metrics. The provided code initializes the RUM monitoring with necessary configuration such as application ID and client token.

import { startRum } from '@datadog/browser-rum-core';

startRum({
  applicationId: 'YOUR_APP_ID',
  clientToken: 'YOUR_CLIENT_TOKEN',
  site: 'datadoghq.com',
  service: 'your-service-name',
  // Specify a version number to identify the deployed version of your application
  version: '1.0.0'
});

Error Tracking

This feature enables the tracking of errors that occur during a user's session. The code sample demonstrates how to manually log an error along with its severity level.

import { addError } from '@datadog/browser-rum-core';

addError(new Error('Something went wrong'), {
  context: {
    severity: 'error'
  }
});

Performance Monitoring

This feature helps in monitoring the performance of different views within your application. The code sample shows how to mark the start of a new view, which can be used to measure view load times and other related metrics.

import { startView } from '@datadog/browser-rum-core';

startView({ name: 'homepage' });

Other packages similar to @datadog/browser-rum-core

Changelog

Source

v4.39.0

  • ♻️ [RUMF-1533] extract the Flush logic into a reusable component (#2144)
  • 🔥 Cleanup unnecessary flags (#2145)
  • [REPLAY] Add public function to get the link to current Replay (#2047)
  • 🐛 [RUMF-1544] Fix badly polyfilled URL (#2141)
  • Add an eslint rule to disallow the use of too generic utility file names (#2101)
  • ♻️ [RUMF-1517] split tools utils (#2128)
  • ♻️ [RUMF-1505] make sure we don't use Zone.js addEventListener (#2129)
  • 🏷️ improve addEventListener typings (#2127)
  • 🐛[RUMF-1517] Remove specHelper export in src code (#2126)
  • ♻️ rename performance utils (#2136)
  • ✨ Support snippet as a valid file url for stack trace computation (#2077)
  • ✅ Remove feature flag test warning noise

Readme

Source

rum-core

Datadog browser RUM core utilities.

FAQs

Package last updated on 13 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc