For common environments and frameworks like Rails, Rack, and others, we provide automatic integration for reporting. Most of the time you don’t need to change anything, although you can configure those features if you want.
The following integrations are available:
- Sidekiq (
- Delayed::Job (
- Rake (
- Rack (
- Rails (
Integrations are automatically loaded by default. This can be problematic if the default integration behavior doesn’t suit your projects’ needs.
To explicitly include integrations:
require 'sentry_raven_without_integrations' Raven.inject_only(:railties, :rack, :rake)
To deny integrations:
require 'sentry_raven_without_integrations' Raven.inject_without(:sidekiq, :delayed_job)
If you’re using bundler, then in your gemfile:
gem 'sentry-raven', require: 'sentry_raven_without_integrations'
And in some sort of initializer: