You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is that when we join the results of the two fibers created by <&> we're essentially creating a new Cause that concats all the failures and we count them again.
One way to fix this would be to filter on the fiberId in the Cause's traces, but that would only work with ZIO.fail / ZIO.attempt etc, but not with Exit.fail. In the case of Exit.fail we would have to either double-count or not include it in metrics at all.
I expect this example to print 5 for String causes and 2 for null pointer exception causes.
But the output is:
The text was updated successfully, but these errors were encountered: