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

Function supports_spantrace

libs/error-stack/tests/common.rs:229–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227
228#[cfg(feature = "spantrace")]
229pub fn supports_spantrace() -> bool {
230 static STATE: LazyLock<bool> = LazyLock::new(|| {
231 let st = tracing_error::SpanTrace::capture();
232 st.status() == tracing_error::SpanTraceStatus::CAPTURED
233 });
234
235 *STATE
236}
237
238pub fn remove_builtin_messages<S: AsRef<str>>(
239 messages: impl IntoIterator<Item = S>,

Callers 1

expect_countFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected