Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kyri-petrou
Copy link
Contributor

/fixes #9742

Currently we could every fiber that results in a failure in runtime metrics as a failure. In cases were we join fibers (i.e., parallel ops) this results in double+ counting of failures as both fibers will show up as failures.

With this PR we filter the Cause and count failures only for the ones that originated from the current fiber (based on its id). However, this means that we won't be counting failures that are stackless (i.e., Exit.fail). After discussing this with @jdegoes, we agreed that this is OK as Exit.fail should not be tracked as it's stackless.

guizmaii
guizmaii previously approved these changes Apr 22, 2025
@kyri-petrou kyri-petrou merged commit 6676b5a into zio:series/2.x Apr 24, 2025
18 checks passed
@kyri-petrou kyri-petrou deleted the fix-double-failure-counting branch April 24, 2025 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fiber Failure Metric Double Counts Failures

2 participants