Skip to content

Fix yabeda-hotcell recording 0 seconds for calls with no perform_ms - #113

Merged
flavorjones merged 1 commit into
masterfrom
card-663-yabeda-failed-call-duration
Oct 10, 2026
Merged

flavorjones merged 1 commit into
masterfrom
card-663-yabeda-failed-call-duration

Conversation

@flavorjones

@flavorjones flavorjones commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Motivation

yabeda-hotcell exports hotcell_perform_seconds, a histogram of how long a cell's worker spent running the operation for each call. The cell measures that time and returns it in the response as perform_ms.

Some responses have no perform_ms:

record_perform recorded these calls as 0-second observations. The histogram mixed those zeros with real perform times, which pulled its low percentiles down.

This fixes the timing problem reported in #112.

Details

record_perform records an observation only when the response has perform_ms. requests still counts every call. Failures that come from a worker, such as unreadable or killed, carry a measured perform_ms and are still recorded.

Copilot AI balanced review requested due to automatic review settings October 10, 2026 14:48

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.

When the cell refused a call with `capacity`, or the client failed a call
itself with `unavailable` or `timeout`, the response carried no
`perform_ms`. `yabeda-hotcell` recorded those calls as 0-second `perform`
observations, which pulled down the histogram's low percentiles. Record
`perform` only when the response carries `perform_ms`.

ref: #112
@flavorjones
flavorjones force-pushed the card-663-yabeda-failed-call-duration branch from a79a62a to f868336 Compare October 10, 2026 15:21
@flavorjones flavorjones changed the title Fix yabeda-hotcell recording 0 seconds when no worker ran Fix yabeda-hotcell recording 0 seconds for calls with no perform_ms Oct 10, 2026
@flavorjones
flavorjones merged commit 209d8d6 into master Oct 10, 2026
33 checks passed
@flavorjones
flavorjones deleted the card-663-yabeda-failed-call-duration branch October 10, 2026 15:24
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.

2 participants