наблюдаемость: завершить базовый контур Community
Добавить структурированные журналы, метрики, трассировку и безопасный канал критических ошибок. Усилить границы рантайма, тесты, проверку зависимостей и сценарии развёртывания.
This commit is contained in:
1 parent
99bd05c145
commit
0e8f1ca03a
160 files changed
+13506
-1499
No files matched your search
@@ -0,0 +1,15 @@
|
||||
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"
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user