lib/sentry/sidekiq/error_handler.rb in sentry-sidekiq-5.4.2 vs lib/sentry/sidekiq/error_handler.rb in sentry-sidekiq-5.5.0

- old
+ new

@@ -7,10 +7,10 @@ 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 + scope.set_transaction_name(context_filter.transaction_name, source: :task) unless scope.transaction_name if Sentry.configuration.sidekiq.report_after_job_retries && retryable?(context) retry_count = context.dig(:job, "retry_count") if retry_count.nil? || retry_count < retry_limit(context) - 1 return