[][src]Function holochain_tracing::push_span_with

pub fn push_span_with<F: FnOnce(&mut Span) -> Span>(
    f: F
) -> Option<SpanStackGuard>

Applies a function to the top of the span stack and pushes the value onto the stack. If the stack is empty, the function will not be executed and None will be returned.