Product
Introducing Socket Optimize
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
Rollbar is a real-time error tracking and monitoring tool for JavaScript applications. It helps developers to detect, diagnose, and fix errors in their applications by providing detailed error reports and notifications.
Error Tracking
Rollbar can automatically capture and report uncaught exceptions and unhandled promise rejections. This helps in tracking errors that occur in the application.
const Rollbar = require('rollbar');
const rollbar = new Rollbar({
accessToken: 'YOUR_ACCESS_TOKEN',
captureUncaught: true,
captureUnhandledRejections: true
});
// Example of tracking an error
try {
throw new Error('Test error');
} catch (e) {
rollbar.error(e);
}
Custom Logging
Rollbar allows custom logging of messages, warnings, and info messages. This can be useful for tracking specific events or conditions in the application.
const Rollbar = require('rollbar');
const rollbar = new Rollbar({
accessToken: 'YOUR_ACCESS_TOKEN'
});
// Log a custom message
rollbar.log('Custom log message');
// Log a warning
rollbar.warning('This is a warning');
// Log an info message
rollbar.info('This is an info message');
Telemetry
Rollbar can capture telemetry data such as console logs, network requests, and DOM events. This helps in understanding the context in which an error occurred.
const Rollbar = require('rollbar');
const rollbar = new Rollbar({
accessToken: 'YOUR_ACCESS_TOKEN',
captureUncaught: true,
captureUnhandledRejections: true,
autoInstrument: true
});
// Example of adding custom telemetry data
rollbar.configure({
payload: {
telemetry: [
{ type: 'log', level: 'info', body: 'Custom telemetry data' }
]
}
});
Sentry is another popular error tracking and monitoring tool. It provides similar functionalities to Rollbar, including real-time error tracking, performance monitoring, and detailed error reports. Sentry also supports a wide range of programming languages and frameworks.
Airbrake is an error monitoring tool that provides real-time error tracking and detailed error reports. It offers similar features to Rollbar, such as capturing uncaught exceptions and custom logging. Airbrake also integrates with various development tools and services.
Bugsnag is an error monitoring tool that helps developers to detect, diagnose, and fix errors in their applications. It provides similar functionalities to Rollbar, including real-time error tracking, custom logging, and detailed error reports. Bugsnag also offers features like user tracking and release tracking.
Rollbar.js is the Javascript SDK for Rollbar. It supports both Node.js and client-side Javascript, including frameworks such as React, Angular, Ember, and more.
For complete usage instructions and configuration reference, see our Javascript SDK docs.
See our Releases page for a list of all releases, including changes.
If you run into any issues, please email us at support@rollbar.com.
For bug reports, please open an issue on GitHub.
To set up a development environment, you'll need Node.js and npm.
git submodule update --init
npm install -D
make
To run the tests, run make test
.
git checkout -b my-new-feature
).git commit -am 'Added some feature'
).git push origin my-new-feature
).FAQs
Effortlessly track and debug errors in your JavaScript applications with Rollbar. This package includes advanced error tracking features and an intuitive interface to help you identify and fix issues more quickly.
The npm package rollbar receives a total of 280,275 weekly downloads. As such, rollbar popularity was classified as popular.
We found that rollbar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
Product
We're excited to announce that Socket now supports the Java programming language.
Security News
Socket detected a malicious Python package impersonating a popular browser cookie library to steal passwords, screenshots, webcam images, and Discord tokens.