[−][src]Macro tracing::warn_span
Constructs a span at the warn level.
Fields and attributes are set using the same syntax as the span!
macro.
See the top-level documentation for details on the syntax accepted by this macro.
Examples
warn_span!("my_span"); // is equivalent to: span!(Level::WARN, "my_span");
use tracing::warn_span; let span = warn_span!("my span"); span.in_scope(|| { // do work inside the span... });