Revert "feat: Introduce NodeBuilder" (#5868)

This commit is contained in:
Matthias Seitz
2023-12-27 14:23:32 +01:00
committed by GitHub
parent ff78d1e1f9
commit 3aa718a561
12 changed files with 847 additions and 1618 deletions

View File

@ -33,8 +33,7 @@ pub type BoxedLayer<S> = Box<dyn Layer<S> + Send + Sync>;
/// Initializes a new [Subscriber] based on the given layers.
pub fn init(layers: Vec<BoxedLayer<Registry>>) {
// To avoid panicking in tests, we silently fail if we cannot initialize the subscriber.
let _ = tracing_subscriber::registry().with(layers).try_init();
tracing_subscriber::registry().with(layers).init();
}
/// Builds a new tracing layer that writes to stdout.