pub fn component_span(name: &'static str) -> SpanExpand description
Returns a new tracing::Span with a component field set.
§Example
let _span = component_span("auth-service").entered();
tracing::info!("component log");pub fn component_span(name: &'static str) -> SpanReturns a new tracing::Span with a component field set.
let _span = component_span("auth-service").entered();
tracing::info!("component log");