🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_core/
parent.rs

1use crate::span::Id;
2
3#[derive(Debug)]
4pub(crate) enum Parent {
5    /// The new span will be a root span.
6    Root,
7    /// The new span will be rooted in the current span.
8    Current,
9    /// The new span has an explicitly-specified parent.
10    Explicit(Id),
11}