lib/appsignal/subscriber.rb in appsignal-1.2.0.alpha.1 vs lib/appsignal/subscriber.rb in appsignal-1.2.0.alpha.2

- old
+ new

@@ -1,9 +1,7 @@ module Appsignal class Subscriber - BLANK = ''.freeze - attr_reader :as_subscriber def initialize subscribe end @@ -36,23 +34,22 @@ def start(name, id, payload) return unless transaction = Appsignal::Transaction.current return if transaction.nil_transaction? || transaction.paused? - Appsignal::Extension.start_event(transaction.transaction_index) + transaction.start_event end def finish(name, id, payload) return unless transaction = Appsignal::Transaction.current return if transaction.nil_transaction? || transaction.paused? title, body, body_format = Appsignal::EventFormatter.format(name, payload) - Appsignal::Extension.finish_event( - transaction.transaction_index, + transaction.finish_event( name, - title || BLANK, - body || BLANK, - body_format || 0 + title, + body, + body_format ) end end end