We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b486867 commit 7e1998cCopy full SHA for 7e1998c
tracing/src/span.rs
@@ -328,6 +328,7 @@ pub trait AsId: crate::sealed::Sealed {
328
/// span will silently do nothing. Thus, the handle can be used in the same
329
/// manner regardless of whether or not the trace is currently being collected.
330
#[derive(Clone)]
331
+#[must_use = "once a span has been created, it should be entered"]
332
pub struct Span {
333
/// A handle used to enter the span when it is not executing.
334
///
0 commit comments