0e8f1ca03a
Добавить структурированные журналы, метрики, трассировку и безопасный канал критических ошибок. Усилить границы рантайма, тесты, проверку зависимостей и сценарии развёртывания.
16 lines
506 B
Rust
16 lines
506 B
Rust
use crank_observability::{
|
|
OperationalIncident, operational_incident_total, record_operational_incident,
|
|
};
|
|
|
|
#[test]
|
|
fn history_loss_counter_has_no_dynamic_dimensions() {
|
|
let before = operational_incident_total(OperationalIncident::InvocationHistoryLost);
|
|
|
|
record_operational_incident(OperationalIncident::InvocationHistoryLost);
|
|
|
|
assert!(
|
|
operational_incident_total(OperationalIncident::InvocationHistoryLost) > before,
|
|
"the closed incident counter must increase"
|
|
);
|
|
}
|