Function start_guard

Source
pub fn start_guard<S: Into<StrCow>>(name: S) -> SpanGuard
Expand description

Starts a Span and also returns a SpanGuard.

When the SpanGuard is dropped (or .end() is called on it), the span will automatically be ended.