Return the actual value not the span

Stephen Paul Weber created

Change summary

lib/patches_for_sentry.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

lib/patches_for_sentry.rb 🔗

@@ -65,7 +65,7 @@ module SentryIQManager
 
 		span = transaction.start_child(op: "xmpp.iq", description: description)
 
-		yield.then { span.finish }.catch do |e|
+		yield.then { |x| x.tap { span.finish } }.catch do |e|
 			span.set_status("internal_error")
 			span.finish
 			EMPromise.reject(e)