lib/appsignal/transaction.rb in appsignal-2.2.0 vs lib/appsignal/transaction.rb in appsignal-2.2.1

- old
+ new

@@ -276,20 +276,20 @@ def record_event(name, title, body, duration, body_format = Appsignal::EventFormatter::DEFAULT) @ext.record_event( name, title || BLANK, body || BLANK, - duration, body_format || Appsignal::EventFormatter::DEFAULT, + duration, self.class.garbage_collection_profiler.total_time ) end def instrument(name, title = nil, body = nil, body_format = Appsignal::EventFormatter::DEFAULT) start_event - r = yield + yield if block_given? + ensure finish_event(name, title, body, body_format) - r end class GenericRequest attr_reader :env