[SERVER-66882] Count actual logged warnings as "assertion warnings" Created: 31/May/22  Updated: 06/Dec/22

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Eric Milkie Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Participants:

 Description   

Back in 3.6, we used to have wassert, and it was counted in a separate counter just like masserts, uasserts, and tasserts currently are. Since 4.0, however, the "warnings" AssertionCount is just zero and has no code that can increment it. This assertion-warnings count is still collected out of server status and displayed on the Assertions metrics chart in Cloud along with the rest of the assertions, but it never shows anything other than 0.
To restore usefulness to this counter, we should count the number of logged server messages at "W" (warning) severity. In a sense, these are our new "assertion warnings".

In addition, I propose that we start counting the number of "E" error log messages, in a separate counter. We could then start collecting this data and add a line to the Assertions chart for errors.


Generated at Thu Feb 08 06:06:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.