lib/appsignal/subscriber.rb in appsignal-0.12.beta.31 vs lib/appsignal/subscriber.rb in appsignal-0.12.beta.32

- old
+ new

@@ -1,10 +1,8 @@ module Appsignal class Subscriber - PROCESS_ACTION_PREFIX = 'process_action'.freeze - PERFORM_JOB_PREFIX = 'perform_job'.freeze - BLANK = ''.freeze + BLANK = ''.freeze def initialize subscribe end @@ -31,21 +29,16 @@ # https://github.com/rails/rails/blob/master/activesupport/lib/active_support/notifications/fanout.rb#L49 end def start(name, id, payload) return unless transaction = Appsignal::Transaction.current - return if transaction.paused? + Appsignal::Extension.start_event(transaction.transaction_index) end def finish(name, id, payload) return unless transaction = Appsignal::Transaction.current - - if name.start_with?(PROCESS_ACTION_PREFIX, PERFORM_JOB_PREFIX) - transaction.set_root_event(name, payload) - end - return if transaction.paused? title, body = Appsignal::EventFormatter.format(name, payload) Appsignal::Extension.finish_event( transaction.transaction_index,