summaryrefslogtreecommitdiffstats
path: root/vendor/tracing-core/src/parent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/tracing-core/src/parent.rs')
-rw-r--r--vendor/tracing-core/src/parent.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/tracing-core/src/parent.rs b/vendor/tracing-core/src/parent.rs
new file mode 100644
index 000000000..cb34b376c
--- /dev/null
+++ b/vendor/tracing-core/src/parent.rs
@@ -0,0 +1,11 @@
+use crate::span::Id;
+
+#[derive(Debug)]
+pub(crate) enum Parent {
+ /// The new span will be a root span.
+ Root,
+ /// The new span will be rooted in the current span.
+ Current,
+ /// The new span has an explicitly-specified parent.
+ Explicit(Id),
+}