What is @sentry/integrations?
The @sentry/integrations package provides a collection of official integrations for Sentry, which is an error tracking and performance monitoring platform. These integrations extend the functionality of Sentry by connecting it with other services and tools, enhancing error reporting, and providing additional context for debugging.
What are @sentry/integrations's main functionalities?
Redux Integration
This integration captures actions and state from the Redux library, providing a detailed snapshot of the application state at the time of an error.
import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/integrations';
Sentry.init({
dsn: 'YOUR_DSN',
integrations: [new Integrations.BrowserTracing(), new Integrations.Redux({})]
});
Vue Integration
This integration hooks into the Vue.js framework to capture errors and provide enhanced error reporting with additional context specific to Vue applications.
import * as Sentry from '@sentry/vue';
import { Integrations } from '@sentry/integrations';
Sentry.init({
dsn: 'YOUR_DSN',
integrations: [new Integrations.BrowserTracing()],
Vue: Vue
});
Dedupe Integration
The Dedupe integration helps prevent sending duplicate error events to Sentry. It is useful for reducing noise and conserving event quota.
import * as Sentry from '@sentry/browser';
import { Dedupe } from '@sentry/integrations';
Sentry.init({
dsn: 'YOUR_DSN',
integrations: [new Dedupe()]
});
Other packages similar to @sentry/integrations
bugsnag-js
Bugsnag provides error monitoring for web, mobile, and server applications. Similar to Sentry, it offers real-time error reporting and allows for custom integrations. However, it is a separate service with its own set of integrations and SDKs.
rollbar-browser
Rollbar offers real-time error tracking and crash reporting for web applications. Like Sentry, it includes features for monitoring, alerting, and analytics. Rollbar has its own set of integrations and SDKs, which are different from those provided by Sentry.
raygun4js
Raygun provides crash reporting, real user monitoring, and user tracking. It is an alternative to Sentry with its own set of features and integrations. Raygun's focus is on providing insights into the user experience and performance issues.
Sentry JavaScript SDK Integrations
![npm dt](https://img.shields.io/npm/dt/@sentry/integrations.svg)
Links
Package Discontinued
This package was discontinued with version 8.0.0 of the Sentry JavaScript SDKs. All integrations from this package are
now directly exported from the SDK packages like @sentry/react
or @sentry/node
. For more information have a look at
the migration guide for
client- and
server-side
SDKs.
General
Pluggable integrations that can be used to enhance JS SDKs.
All of the integrations can also be found on our CDN e.g.:
Angular integration: https://browser.sentry-cdn.com/5.0.0/angular.min.js
Please make sure to always to match the version of the integration with the version of the JS SDK you are loading.