Skip to content

Fix yabeda-hotcell counting a call interrupted by an exception as ok - #108

Closed
flavorjones wants to merge 1 commit into
masterfrom
card-657-yabeda-exception-counted-ok
Closed

flavorjones wants to merge 1 commit into
masterfrom
card-657-yabeda-exception-counted-ok

Conversation

@flavorjones

Copy link
Copy Markdown
Member

Motivation

When an exception escapes a call, such as the application's own request timeout, the perform.hot_cell event carries exception and no code. record_perform falls back to "ok" whenever code is missing, so yabeda-hotcell counted the call as code="ok" and recorded a perform of 0 seconds. Since #78 added cell and operation to that event, these calls are counted in the ok series of the call's real cell and operation. HotCell::LogSubscriber already handles this case.

Fixes #93

Details

record_perform now counts a call that carries an exception and no code under code="exception", with an empty cause, and records no perform observation, because the cell measured nothing. A call that the cell answered keeps its code. docs/observability.md documents the new code.

When an exception, such as the application's own request timeout,
escaped a call, `yabeda-hotcell` counted the call as `code="ok"` and
recorded a `perform` of 0 seconds, inflating `ok` for the call's cell
and operation. Count it under `code="exception"` and skip the `perform`
observation.

[Fix #93]
Copilot AI balanced review requested due to automatic review settings October 9, 2026 18:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@flavorjones

Copy link
Copy Markdown
Member Author

Superseded by #109.

@flavorjones
flavorjones deleted the card-657-yabeda-exception-counted-ok branch October 10, 2026 17:32
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.

yabeda-hotcell counts a call interrupted by an exception as code="ok"

2 participants