Integrate tracing (#6339)

Tracing Integration
- [reference](5bbf1859e9/projects/project-ideas.md (L297))


  - [x] replace slog & log with tracing throughout the codebase
- [x] implement custom crit log
- [x] make relevant changes in the formatter
- [x] replace sloggers
- [x] re-write SSE logging components

cc: @macladson @eserilev
This commit is contained in:
ThreeHrSleep
2025-03-13 04:01:05 +05:30
committed by GitHub
parent f23f984f85
commit d60c24ef1c
241 changed files with 9485 additions and 9328 deletions

View File

@@ -1,6 +1,5 @@
#![cfg(any(feature = "mdbx", feature = "lmdb", feature = "redb"))]
use logging::test_logger;
use maplit::hashset;
use rayon::prelude::*;
use slasher::{
@@ -272,7 +271,7 @@ fn slasher_test(
let tempdir = tempdir().unwrap();
let config = Config::new(tempdir.path().into());
let spec = chain_spec();
let slasher = Slasher::open(config, spec, test_logger()).unwrap();
let slasher = Slasher::open(config, spec).unwrap();
let current_epoch = Epoch::new(current_epoch);
for (i, attestation) in attestations.iter().enumerate() {
@@ -302,7 +301,7 @@ fn parallel_slasher_test(
let tempdir = tempdir().unwrap();
let config = Config::new(tempdir.path().into());
let spec = chain_spec();
let slasher = Slasher::open(config, spec, test_logger()).unwrap();
let slasher = Slasher::open(config, spec).unwrap();
let current_epoch = Epoch::new(current_epoch);
attestations