Skip to main content

attribution_span

Macro attribution_span 

Source
macro_rules! attribution_span {
    ($attributable:expr) => { ... };
}
Expand description

Open an attribution span for the given Attributable thing. Every record! emitted while the returned span is entered inherits the thing’s role + alias as alias-bound attribution on the resulting LogEvent. Wrap entry-point work with .instrument(span) (async) or let _g = span.entered() (sync).