Sha256: 81fbf1449d57faddb04baf042e53e64ea87cc30e465bcd809b0c2d7c58743440
Contents?: true
Size: 822 Bytes
Versions: 1
Compression:
Stored size: 822 Bytes
Contents
require "sidekiq" require "sentry-ruby" require "sentry/integrable" require "sentry/sidekiq/version" require "sentry/sidekiq/error_handler" require "sentry/sidekiq/sentry_context_middleware" module Sentry module Sidekiq extend Sentry::Integrable register_integration name: "sidekiq", version: Sentry::Sidekiq::VERSION if defined?(::Rails) class Railtie < ::Rails::Railtie config.after_initialize do next unless Sentry.initialized? Sentry.configuration.rails.skippable_job_adapters << "ActiveJob::QueueAdapters::SidekiqAdapter" end end end end end Sidekiq.configure_server do |config| config.error_handlers << Sentry::Sidekiq::ErrorHandler.new config.server_middleware do |chain| chain.add Sentry::Sidekiq::SentryContextMiddleware end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sentry-sidekiq-4.2.0 | lib/sentry-sidekiq.rb |