Skip to main content

scope_current

Function scope_current 

Source
pub fn scope_current<F>(
    ctx: SpanContext,
    future: F,
) -> impl Future<Output = F::Output>
where F: Future,
Expand description

Run future with ctx installed as the ambient span context. Spans created inside the future link to ctx as their parent unless they set one explicitly.