Skip to main content
Integrations extend Sentry’s functionality by adding automatic instrumentation, filtering, and data enrichment capabilities. The Sentry JavaScript SDK includes several core integrations that are enabled by default, as well as optional integrations for specific use cases.

Core Integrations

These integrations are automatically enabled and provide essential functionality:

Event Filters

Filter out unwanted errors and transactions based on patterns

Linked Errors

Capture error cause chains and aggregate errors

Dedupe

Prevent duplicate error events from being sent

Request Data

Attach request context to error events

Integration Types

Event Processing

Integrations can process events before they’re sent to Sentry:
  • Event Filters: Filter events based on error messages, URLs, or transaction names
  • Dedupe: Remove duplicate events by comparing stacktraces and fingerprints
  • Request Data: Enrich events with HTTP request information

Error Enrichment

  • Linked Errors: Automatically capture error cause chains
  • Extra Error Data: Add additional context from error objects

Performance Monitoring

  • AI Monitoring: Track LLM API calls and responses
  • Database: Monitor database queries and operations
  • Backend Services: Instrument external service calls

How Integrations Work

Integrations are registered during SDK initialization:
import * as Sentry from '@sentry/node';

Sentry.init({
  dsn: 'your-dsn',
  integrations: [
    // Default integrations are automatically included
    // Add custom integrations here
    Sentry.postgresIntegration(),
    Sentry.openAIIntegration(),
  ],
});

Default Integrations

The SDK includes these integrations by default:
  • eventFiltersIntegration()
  • linkedErrorsIntegration()
  • dedupeIntegration()
  • requestDataIntegration() (Node.js SDKs)

Disabling Default Integrations

To disable a default integration:
Sentry.init({
  dsn: 'your-dsn',
  integrations: integrations => {
    return integrations.filter(integration => {
      return integration.name !== 'Dedupe';
    });
  },
});

Configuration Options

Most integrations accept configuration options:
Sentry.init({
  dsn: 'your-dsn',
  integrations: [
    Sentry.eventFiltersIntegration({
      ignoreErrors: [/Custom.*Error/],
      denyUrls: [/external-cdn\.com/],
    }),
  ],
});

Next Steps

AI Monitoring

Monitor AI/LLM applications

Database Integrations

Track database operations