lib/sentry/rails/action_cable.rb in sentry-rails-5.7.0 vs lib/sentry/rails/action_cable.rb in sentry-rails-5.8.0
- old
+ new
@@ -18,11 +18,12 @@
scope.set_transaction_name(transaction_name, source: :view)
transaction = start_transaction(env, scope)
scope.set_span(transaction) if transaction
begin
- block.call
+ result = block.call
finish_transaction(transaction, 200)
+ result
rescue Exception => e # rubocop:disable Lint/RescueException
Sentry::Rails.capture_exception(e)
finish_transaction(transaction, 500)
raise