Files
neon/libs/utils/src
Erik Grinaker 06b45fd0fd utils/logging: add critical! macro and metric (#10641)
## Problem

We don't currently have good alerts for critical errors, e.g. data
loss/corruption.

Touches #10094.

## Summary of changes

Add a `critical!` macro and corresponding
`libmetrics_tracing_event_count{level="critical"}` metric. This will:

* Emit an `ERROR` log message with prefix `"CRITICAL:"` and a backtrace.
* Increment `libmetrics_tracing_event_count{level="critical"}`, and
indirectly `level="error"`.
* Trigger a pageable alert (via the metric above).
* In debug builds, panic the process.

I'll add uses of the macro separately.
2025-02-03 19:23:12 +00:00
..
2022-08-16 18:49:22 +03:00
2024-09-16 18:45:19 +00:00
2024-10-18 10:27:50 +01:00
2024-01-23 11:17:15 +00:00
2024-09-19 11:57:10 +03:00