Sha256: 4f09a4e2b82e0ea38f42d4287a501e3a9435b694d54b9ddfdec6e83fbf6e533b
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
require 'sentry/sidekiq/context_filter' module Sentry module Sidekiq class ErrorHandler def call(ex, context) return unless Sentry.initialized? context_filter = Sentry::Sidekiq::ContextFilter.new(context) scope = Sentry.get_current_scope scope.set_transaction_name(context_filter.transaction_name) unless scope.transaction_name Sentry::Sidekiq.capture_exception( ex, extra: { sidekiq: context_filter.filtered }, hint: { background: false } ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sentry-sidekiq-4.3.0 | lib/sentry/sidekiq/error_handler.rb |
sentry-sidekiq-4.2.1 | lib/sentry/sidekiq/error_handler.rb |
sentry-sidekiq-4.2.0 | lib/sentry/sidekiq/error_handler.rb |