Skip to main content

component_span

Function component_span 

Source
pub fn component_span(name: &'static str) -> Span
Expand description

Returns a new tracing::Span with a component field set.

§Example

let _span = component_span("auth-service").entered();
tracing::info!("component log");