Skip to content

Conversation

bbrks
Copy link
Member

@bbrks bbrks commented Sep 24, 2024

CBG-4187

Add stat to track number of assertion failures. Plus more Assertion enhancements:

  • Enforced 'Assertion failure:' message prefix for searchability.
  • Swapped warn to error for dev-mode, since we're asking for failures to be reported and want longer-term visibility in collected logs.
  • Replace dev-mode only stat with the new global stat.
  • Improve description with instruction for what to do if observed.
  • Improve godoc comments for AssertfCtx to make it more obvious that it does not do control flow and is up to the caller to do so.

Integration Tests

- Enforced 'Assertion failure:' message prefix for searchability.
- Swapped warn to error for dev-mode, since we're asking for failures to be reported and want longer-term visibility in collected logs.
- Replace dev-mode only stat with the new global stat.
- Improve description with instruction for what to do if observed.
- Improve godoc comments for AssertfCtx to make it more obvious that it does not do control flow and is up to the caller to do so.
@bbrks bbrks assigned torcolvin and unassigned bbrks Mar 21, 2025
@torcolvin torcolvin assigned bbrks and unassigned torcolvin Mar 21, 2025
@bbrks bbrks merged commit 76cb1ce into main Mar 25, 2025
44 checks passed
@bbrks bbrks deleted the CBG-4187 branch March 25, 2025 11:39
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