![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
@datadog/browser-rum-core
Advanced tools
Package description
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.
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' });
Sentry's browser package provides error tracking and performance monitoring similar to @datadog/browser-rum-core. While both offer real-time monitoring and user insights, Sentry places a stronger emphasis on error resolution and developer workflows for debugging.
New Relic's browser agent is another alternative that offers real user monitoring capabilities. It includes features like session tracing and AJAX timing, providing a comprehensive view of the user experience. Compared to @datadog/browser-rum-core, New Relic offers more extensive integration options with other New Relic monitoring services.
Elastic APM's RUM (Real User Monitoring) library is part of the Elastic Stack, focusing on performance monitoring and user behavior analytics. It is similar to @datadog/browser-rum-core but also integrates tightly with other Elastic products for a more unified monitoring solution.
Changelog
Readme
rum-core
Datadog browser RUM core utilities.
FAQs
Datadog browser RUM core utilities.
The npm package @datadog/browser-rum-core receives a total of 1,190,462 weekly downloads. As such, @datadog/browser-rum-core popularity was classified as popular.
We found that @datadog/browser-rum-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.