lib/tobox/plugins/sentry.rb in tobox-0.3.0 vs lib/tobox/plugins/sentry.rb in tobox-0.3.1
- old
+ new
@@ -72,14 +72,14 @@
end
def on_error(event, error)
return unless ::Sentry.initialized?
+ capture_exception(event, error)
+
transaction = retrieve_transaction(event)
return unless transaction
-
- capture_exception(event, error)
finish_transaction(transaction, 500)
end
private