MCPcopy Create free account
hub / github.com/hashintel/hash / install_tracing_subscriber

Function install_tracing_subscriber

libs/error-stack/tests/test_span_trace.rs:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9use tracing_subscriber::layer::SubscriberExt as _;
10
11fn install_tracing_subscriber() {
12 static ONCE: std::sync::Once = std::sync::Once::new();
13 ONCE.call_once(|| {
14 tracing::subscriber::set_global_default(
15 tracing_subscriber::Registry::default().with(ErrorLayer::default()),
16 )
17 .expect("Could not set tracing subscriber");
18 });
19}
20
21#[test]
22fn captured() {

Callers 2

capturedFunction · 0.85
providedFunction · 0.85

Calls 3

defaultFunction · 0.50
expectMethod · 0.45
withMethod · 0.45

Tested by

no test coverage detected